Deuteronomy 12:29-30 (YLT)
29 ‘When Jehovah thy God doth cut off the nations--whither thou art going in to possess them--from thy presence, and thou hast possessed them, and hast dwelt in their land--
30 take heed to thee, lest thou be snared after them, after their being destroyed out of thy presence, and lest thou enquire about their gods, saying, How do these nations serve their gods, and I do so--even I?
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