Deuteronomy 12:30

Beware that thou be not taken in a snare after them, after that they be destroyed before thee, and that thou ask not after their gods saying, 'How did these nations serve their gods, that I may do so likewise?'

Deuteronomy 7:16

Thou shalt bring to nought all nations which the LORD thy God delivereth thee; thine eye shall have no pity upon them neither shalt thou serve their gods, for that shall be thy decay.

Exodus 23:31-33

And I will make thy coasts from the reed sea unto the sea of the Philistines, and from the desert unto the river. I will deliver the inhabiters of the land into thine hand, and thou shalt drive them out before thee.

Leviticus 18:3

Wherefore after the doings of the land of Egypt wherein ye dwelt, see that ye do not; neither after the doings of the land of Canaan, whither I will bring you, neither walk ye in their ordinances;

Numbers 33:52

see that ye drive out all the inhabiters of the land before you, and destroy their imaginations and all their images of metal, and pluck down all their altars built on hills:

Judges 2:2-3

but ye should have made no covenant with the inhabiters of this land, ye should have broken down their altars: but ye have not obeyed my voice. Why have ye this done?

2 Kings 17:15

And they refused his ordinances and his covenant that he had made with their fathers, and the witness which he had witnessed to them and followed vanity and became vain, like to the heathen that were round about them, of which the LORD had charged them, that they should not do like them.

Psalm 106:34-38

Neither destroyed they the Heathen, as the LORD commanded them,

Jeremiah 10:2

Thus sayeth the LORD, "Ye shall not learn after the manner of the Heathen, and ye shall not be afraid for the tokens of heaven: for the Heathen are afraid of such.

Ezekiel 20:28

For after I had brought them into the land that I promised to give them, when they saw every high hill, and all the thick trees: they made there offerings, and provoked me with their oblations, making sweet savours there, and poured out their drink offerings.

Ezekiel 20:32

And as for the thing that ye go about, it shall not come to pass, whereas ye say, 'We will be as the Heathen, and do as other people in the land: wood and stone will we worship.'

Romans 12:2

And fashion not yourselves like unto this world: But be changed through the renewing of your mind, that ye may prove what thing that good, that acceptable, and perfect will of God is.

Ephesians 4:17

This I say, therefore, and testify in the Lord, that ye henceforth walk not as other gentiles walk; in vanity of their mind,

1 Peter 4:3-4

For it is sufficient for us that we have spent the time that is past of the life, after the will of the gentiles; walking in wantonness, lusts, drunkenness, in eating, drinking, and in abominable idolatry.

Treasury of Scripture Knowledge

Summary

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.

Bible References

That thou

Deuteronomy 7:16
Thou shalt bring to nought all nations which the LORD thy God delivereth thee; thine eye shall have no pity upon them neither shalt thou serve their gods, for that shall be thy decay.
Exodus 23:31
And I will make thy coasts from the reed sea unto the sea of the Philistines, and from the desert unto the river. I will deliver the inhabiters of the land into thine hand, and thou shalt drive them out before thee.
Leviticus 18:3
Wherefore after the doings of the land of Egypt wherein ye dwelt, see that ye do not; neither after the doings of the land of Canaan, whither I will bring you, neither walk ye in their ordinances;
Numbers 33:52
see that ye drive out all the inhabiters of the land before you, and destroy their imaginations and all their images of metal, and pluck down all their altars built on hills:
Judges 2:2
but ye should have made no covenant with the inhabiters of this land, ye should have broken down their altars: but ye have not obeyed my voice. Why have ye this done?
2 Kings 17:15
And they refused his ordinances and his covenant that he had made with their fathers, and the witness which he had witnessed to them and followed vanity and became vain, like to the heathen that were round about them, of which the LORD had charged them, that they should not do like them.
Psalm 106:34
Neither destroyed they the Heathen, as the LORD commanded them,
Ezekiel 20:28
For after I had brought them into the land that I promised to give them, when they saw every high hill, and all the thick trees: they made there offerings, and provoked me with their oblations, making sweet savours there, and poured out their drink offerings.

How did

Jeremiah 10:2
Thus sayeth the LORD, "Ye shall not learn after the manner of the Heathen, and ye shall not be afraid for the tokens of heaven: for the Heathen are afraid of such.
Ezekiel 20:32
And as for the thing that ye go about, it shall not come to pass, whereas ye say, 'We will be as the Heathen, and do as other people in the land: wood and stone will we worship.'
Romans 12:2
And fashion not yourselves like unto this world: But be changed through the renewing of your mind, that ye may prove what thing that good, that acceptable, and perfect will of God is.
Ephesians 4:17
This I say, therefore, and testify in the Lord, that ye henceforth walk not as other gentiles walk; in vanity of their mind,
1 Peter 4:3
For it is sufficient for us that we have spent the time that is past of the life, after the will of the gentiles; walking in wantonness, lusts, drunkenness, in eating, drinking, and in abominable idolatry.

General references

Numbers 33:52
see that ye drive out all the inhabiters of the land before you, and destroy their imaginations and all their images of metal, and pluck down all their altars built on hills:
Deuteronomy 12:4
See ye do not so unto the LORD your God;
Deuteronomy 18:9
When thou art come into the land which the LORD thy God giveth thee, see that thou learn not to do after the abominations of these nations.
Deuteronomy 20:18
that they teach you not to do after all their abominations which they do unto their gods, and so should sin against the LORD your God.