Exodus 23:24
24 you shall dnot bow down to their gods nor serve them, enor do as they do, but fyou shall utterly overthrow them and break their gpillars in pieces.
Deuteronomy 12:30–31
30 take care lthat you be not ensnared to follow them, after they have been destroyed before you, and that you do not inquire about their gods, saying, ‘How did these nations serve their gods?—that I also may do the same.’ 31 mYou shall not worship the Lord your God in that way, for every nabominable thing that the Lord hates they have done for their gods, for othey even burn their sons and their daughters in the fire to their gods.