Deuteronomy 12:30

take heed to yourself that you are not ensnared to follow them, after they are destroyed from before you, and that you do not inquire after their gods, saying, "How did these nations serve their gods? I also will do likewise.'