Deuteronomy 12:30

30 be careful not to be ensnared by their ways after they have been destroyed before you. Do not inquire about their gods, asking, 'How did these nations worship their gods? I'll also do the same.'

Deuteronomy 12:30 Meaning and Commentary

Deuteronomy 12:30

Take heed to thyself, that thou be not snared by following
them
Their examples and customs, and so be drawn into the same idolatrous practices; see ( Psalms 106:35 Psalms 106:36 ) , after that they be destroyed from before thee; for their idolatries and other sins:

and that thou inquire not after their gods;
what they were, their names, forms, and figures:

saying, how did these nations serve their gods?
what was the manner of worship they gave them? what rites, customs, and ceremonies did they use in their adoration of them?

even so will I do likewise;
or however, if this was not determined on when the inquiries were made, there was danger that this would be the result of them, and therefore the caution is given.

Deuteronomy 12:30 In-Context

28 Be careful to obey all these things I command you, so that you and your children after you may prosper forever, because you will be doing what is good and right in the sight of the Lord your God.
29 "When the Lord your God annihilates the nations before you, which you are entering to take possession of, and you drive them out and live in their land,
30 be careful not to be ensnared by their ways after they have been destroyed before you. Do not inquire about their gods, asking, 'How did these nations worship their gods? I'll also do the same.'
31 You must not do the same to the Lord your God, because they practice for their gods every detestable thing the Lord hates. They even burn their sons and daughters in the fire to their gods.
32 You must be careful to do everything I command you; do not add anything to it or take anything away from it.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.