Deuteronomy 12:30-31 (ASV)
30 take heed to thyself that thou be not ensnared to follow them, after that they are destroyed from before thee; and that thou inquire not after their gods, saying, How do these nations serve their gods? even so will I do likewise.
31 Thou shalt not do so unto Jehovah thy God: for every abomination to Jehovah, which he hateth, have they done unto their gods; for even their sons and their daughters do they burn in the fire to their gods.
About Deuteronomy 12: Deuteronomy 12 gives clear laws for worship. Moses is speaking to the people before they enter Canaan. He tells them to destroy the pagan altars of the nations. They must not worship God in the same way. God demands pure worship, not mixed with idolatry. Read the study notes
2 verses · Compare in parallel · Read all of Deuteronomy 12