Deuteronomy 12:29-30 (Webster)
29 When the LORD thy God shall cut off the nations from before thee, whither thou goest to possess them, and thou succeedest them, and dwellest in their land;
30 Take heed to thyself that thou be not snared by following them, after that they are destroyed from before thee; and that thou inquire not after their gods, saying, How did these nations serve their gods? even so will I do likewise.
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