Deuteronomy 12:30

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

Deuteronomy 7:16

You shall consume all the peoples whom Yahweh your God shall deliver to you; your eye shall not pity them: neither shall you serve their gods; for that will be a snare to you.

Exodus 23:31-33

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

Leviticus 18:3

You shall not do as they do in the land of Egypt, where you lived: and you shall not do as they do in the land of Canaan, where I am bringing you; neither shall you 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 you shall make no covenant with the inhabitants of this land; you shall break down their altars.' But you have not listened to my voice: why have you done this?

2 Kings 17:15

They rejected his statutes, and his covenant that he made with their fathers, and his testimonies which he testified to them; and they followed vanity, and became vain, and [went] after the nations that were around them, concerning whom Yahweh had commanded them that they should not do like them.

Psalm 106:34-38

They didn't destroy the peoples, as Yahweh commanded them,

Jeremiah 10:2

Thus says Yahweh, "Don't learn the way of the nations, and don't be dismayed at the signs of the sky; for the nations are dismayed at them.

Ezekiel 20:28

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

Ezekiel 20:32

and that which comes into your mind shall not be at all, in that you say, We will be as the nations, as the families of the countries, to serve wood and stone.

Romans 12:2

Don't be conformed to this world, but be transformed by the renewing of your mind, so that you may prove what is the good, well-pleasing, and perfect will of God.

Ephesians 4:17

This I say therefore, and testify in the Lord, that you no longer walk as the rest of the Gentiles also walk, in the futility of their mind,

1 Peter 4:3-4

For we have spent enough of our past time doing the desire of the Gentiles, and having walked in lewdness, lusts, drunken binges, orgies, carousings, 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 Yahweh your God shall deliver to you; your eye shall not pity them: neither shall you serve their gods; for that will be a snare to you.
Exodus 23:31
I will set your border from the Red Sea even to the sea of the Philistines, and from the wilderness to the River; for I will deliver the inhabitants of the land into your hand, and you shall drive them out before you.
Leviticus 18:3
You shall not do as they do in the land of Egypt, where you lived: and you shall not do as they do in the land of Canaan, where I am bringing you; neither shall you 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 you shall make no covenant with the inhabitants of this land; you shall break down their altars.' But you have not listened to my voice: why have you done this?
2 Kings 17:15
They rejected his statutes, and his covenant that he made with their fathers, and his testimonies which he testified to them; and they followed vanity, and became vain, and [went] after the nations that were around them, concerning whom Yahweh had commanded them that they should not do like them.
Psalm 106:34
They didn't destroy the peoples, as Yahweh commanded them,
Ezekiel 20:28
For when I had brought them into the land, which I swore to give to them, then they saw every high hill, and every thick tree, and they offered there their sacrifices, and there they presented the provocation of their offering; there also they made their pleasant aroma, and they poured out there their drink offerings.

How did

Jeremiah 10:2
Thus says Yahweh, "Don't learn the way of the nations, and don't be dismayed at the signs of the sky; for the nations are dismayed at them.
Ezekiel 20:32
and that which comes into your mind shall not be at all, in that you say, We will be as the nations, as the families of the countries, to serve wood and stone.
Romans 12:2
Don't be conformed to this world, but be transformed by the renewing of your mind, so that you may prove what is the good, well-pleasing, and perfect will of God.
Ephesians 4:17
This I say therefore, and testify in the Lord, that you no longer walk as the rest of the Gentiles also walk, in the futility of their mind,
1 Peter 4:3
For we have spent enough of our past time doing the desire of the Gentiles, and having walked in lewdness, lusts, drunken binges, orgies, carousings, 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 do so to Yahweh your God.
Deuteronomy 18:9
When you are come into the land which Yahweh your God gives you, you shall not learn to do after the abominations of those nations.
Deuteronomy 20:18
that they not teach you to do after all their abominations, which they have done to their gods; so would you sin against Yahweh your God.