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.

Exodus 23:24

You shall not bow down to their gods, nor serve them, nor follow their practices, but you shall utterly overthrow them and demolish their pillars.

Leviticus 20:23

You shall not walk in the customs of the nation, which I am casting out before you: for they did all these things, and therefore I abhorred them.

Ezekiel 20:7-8

I said to them, Cast away every man the abominations of his eyes, and don't defile yourselves with the idols of Egypt; I am Yahweh your God.

Deuteronomy 12:30-31

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."

Ezekiel 23:8

Neither has she left her prostitution since [the days of] Egypt; for in her youth they lay with her, and they handled the bosom of her virginity; and they poured out their prostitution on her.

Leviticus 18:24-30

"'Don't defile yourselves in any of these things: for in all these the nations which I am casting out before you were defiled.

Deuteronomy 12:4

You shall not do so to Yahweh your God.

Psalm 106:35

but mixed themselves with the nations, and learned their works.

Jeremiah 10:2-3

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.

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 5:7-11

Therefore don't be partakers with them.

1 Peter 4:2-4

that you no longer should live the rest of your time in the flesh for the lusts of men, but for the will of God.

Treasury of Scripture Knowledge

Summary

After the doings of the land of Egypt, wherein ye dwelt, shall ye not do: and after the doings of the land of Canaan, whither I bring you, shall ye not do: neither shall ye walk in their ordinances.

Bible References

The doings

Psalm 106:35
but mixed themselves with the nations, and learned their works.
Ezekiel 20:7
I said to them, Cast away every man the abominations of his eyes, and don't defile yourselves with the idols of Egypt; I am Yahweh your God.
Ezekiel 23:8
Neither has she left her prostitution since [the days of] Egypt; for in her youth they lay with her, and they handled the bosom of her virginity; and they poured out their prostitution on her.
Ephesians 5:7
Therefore don't be partakers with them.
1 Peter 4:2
that you no longer should live the rest of your time in the flesh for the lusts of men, but for the will of God.

And after

Leviticus 20:23
You shall not walk in the customs of the nation, which I am casting out before you: for they did all these things, and therefore I abhorred them.
Exodus 23:24
You shall not bow down to their gods, nor serve them, nor follow their practices, but you shall utterly overthrow them and demolish their pillars.
Deuteronomy 12:4
You shall not do so to Yahweh your God.
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.
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.