Deuteronomy 12:30

Amplified Bible (AMP)
beware that you are not lured (ensnared) into following them, after they have been destroyed before you, and that you do not inquire about their gods, saying, ‘How did these nations serve their gods, so that I too may do likewise?’

Read Deuteronomy 12:30 in other translations