Deuteronomy 12:30

beware that you are not ensnared to follow them, after they are destroyed before you, and that you do not inquire after their gods, saying, ‘How do these nations serve their gods, that I also may do likewise?’

Deuteronomy 7:16

You shall consume all the peoples whom the Lord your God will deliver to you; your eye shall not pity them, nor shall you serve their gods, for that would be a snare to you.

Exodus 23:31-33

I will fix your boundary from the Red Sea to the sea of the Philistines, and from the wilderness to the River Euphrates; for I will deliver the inhabitants of the land into your hand, and you will drive them out before you.

Leviticus 18:3

You shall not do what is done in the land of Egypt where you lived, nor are you to do what is done in the land of Canaan where I am bringing you; you shall not walk in their statutes.

Numbers 33:52

then you shall drive out all the inhabitants of the land from before you, and destroy all their figured stones, and destroy all their molten images and demolish all their high places;

Judges 2:2-3

and as for you, you shall make no covenant with the inhabitants of this land; you shall tear down their altars.’ But you have not obeyed Me; what is this you have done?

2 Kings 17:15

They rejected His statutes and His covenant which He made with their fathers and His warnings with which He warned them. And they followed vanity and became vain, and went after the nations which surrounded them, concerning which the Lord had commanded them not to do like them.

Psalm 106:34-38

They did not destroy the peoples,
As the Lord commanded them,

Jeremiah 10:2

Thus says the Lord,
Do not learn the way of the nations,
And do not be terrified by the signs of the heavens
Although the nations are terrified by them;

Ezekiel 20:28

When I had brought them into the land which I swore to give to them, then they saw every high hill and every leafy tree, and they offered there their sacrifices and there they presented the provocation of their offering. There also they made their soothing aroma and there they poured out their drink offerings.

Ezekiel 20:32

What comes into your mind will not come about, when you say: ‘We will be like the nations, like the tribes of the lands, serving wood and stone.’

Romans 12:2

And do not be conformed to this world, but be transformed by the renewing of your mind, so that you may prove what the will of God is, that which is good and acceptable and perfect.

Ephesians 4:17

So this I say, and affirm together with the Lord, that you walk no longer just as the Gentiles also walk, in the futility of their mind,

1 Peter 4:3-4

For the time already past is sufficient for you to have carried out the desire of the Gentiles, having pursued a course of sensuality, lusts, drunkenness, carousing, drinking parties and abominable idolatries.

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
You shall consume all the peoples whom the Lord your God will deliver to you; your eye shall not pity them, nor shall you serve their gods, for that would be a snare to you.
Exodus 23:31
I will fix your boundary from the Red Sea to the sea of the Philistines, and from the wilderness to the River Euphrates; for I will deliver the inhabitants of the land into your hand, and you will drive them out before you.
Leviticus 18:3
You shall not do what is done in the land of Egypt where you lived, nor are you to do what is done in the land of Canaan where I am bringing you; you shall not walk in their statutes.
Numbers 33:52
then you shall drive out all the inhabitants of the land from before you, and destroy all their figured stones, and destroy all their molten images and demolish all their high places;
Judges 2:2
and as for you, you shall make no covenant with the inhabitants of this land; you shall tear down their altars.’ But you have not obeyed Me; what is this you have done?
2 Kings 17:15
They rejected His statutes and His covenant which He made with their fathers and His warnings with which He warned them. And they followed vanity and became vain, and went after the nations which surrounded them, concerning which the Lord had commanded them not to do like them.
Psalm 106:34
They did not destroy the peoples,
As the Lord commanded them,
Ezekiel 20:28
When I had brought them into the land which I swore to give to them, then they saw every high hill and every leafy tree, and they offered there their sacrifices and there they presented the provocation of their offering. There also they made their soothing aroma and there they poured out their drink offerings.

How did

Jeremiah 10:2
Thus says the Lord,
Do not learn the way of the nations,
And do not be terrified by the signs of the heavens
Although the nations are terrified by them;
Ezekiel 20:32
What comes into your mind will not come about, when you say: ‘We will be like the nations, like the tribes of the lands, serving wood and stone.’
Romans 12:2
And do not be conformed to this world, but be transformed by the renewing of your mind, so that you may prove what the will of God is, that which is good and acceptable and perfect.
Ephesians 4:17
So this I say, and affirm together with the Lord, that you walk no longer just as the Gentiles also walk, in the futility of their mind,
1 Peter 4:3
For the time already past is sufficient for you to have carried out the desire of the Gentiles, having pursued a course of sensuality, lusts, drunkenness, carousing, drinking parties and abominable idolatries.

General references

Numbers 33:52
then you shall drive out all the inhabitants of the land from before you, and destroy all their figured stones, and destroy all their molten images and demolish all their high places;
Deuteronomy 12:4
You shall not act like this toward the Lord your God.
Deuteronomy 18:9
“When you enter the land which the Lord your God gives you, you shall not learn to imitate the detestable things of those nations.
Deuteronomy 20:18
so that they may not teach you to do according to all their detestable things which they have done for their gods, so that you would sin against the Lord your God.