הִשָּׁ֣מֶר לְךָ֗ פֶּן־תִּכְרֹ֤ת בְּרִית֙ לְיוֹשֵׁ֣ב הָאָ֔רֶץ אֲשֶׁ֥ר אַתָּ֖ה בָּ֣א עָלֶ֑יהָ פֶּן־יִהְיֶ֥ה לְמוֹקֵ֖שׁ בְּקִרְבֶּֽךָ׃
Берегись, чтобы не вступать в завет с жителями той земли, куда ты идешь, чтобы они не были в ловушке среди тебя;
Mishneh Torah, Prayer and the Priestly Blessing
On the intermediate Sabbath of Passover or Tabernacles, the section read is that beginning, "See, Thou sayest unto me" (Exodus 33:12-34:26). The lesson from the Prophets, on Passover, is Ezekiel's vision of the Valley of Dry Bones (Ezekiel 37:1-14); and, on Tabernacles the Prediction concerning Gog (ibid. 38:18-39:16).
Sefer HaChinukh
To not eat and drink a gift to idol worship: To not eat and drink a gift to idolatry, as it is stated (Exodus 34:12-15), “Guard yourself lest you make a covenant with the inhabitants of the land, etc. and he will call to you and you will eat from his offering.”