הִשָּׁ֣מֶר לְךָ֗ פֶּן־תִּכְרֹ֤ת בְּרִית֙ לְיוֹשֵׁ֣ב הָאָ֔רֶץ אֲשֶׁ֥ר אַתָּ֖ה בָּ֣א עָלֶ֑יהָ פֶּן־יִהְיֶ֥ה לְמוֹקֵ֖שׁ בְּקִרְבֶּֽךָ׃
너는 스스로 삼가 네가 들어가는 땅의 거민과 언약을 세우지 말라 그들이 너희 중에 올무가 될까 하노라
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.”