Deuteronomy 12:30

12:30 take heed to yourself that you not be ensnared to follow them, after that they are destroyed from before you; and that you not inquire after their gods, saying, How do these nations serve their gods? even so will I do likewise.
-World English Bible

Other Translation

12:30 Take heed to thyself that thou be not snared by following them, after that they be 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.
-King James Version