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, to which I am bringing you. You shall not walk in their statutes.

Exodus 23:24

you shall not bow down to their gods nor serve them, nor do as they do, but you shall utterly overthrow them and break their pillars in pieces.

Leviticus 20:23

And you shall not walk in the customs of the nation that I am driving out before you, for they did all these things, and therefore I detested them.

Ezekiel 20:7-8

And I said to them, Cast away the detestable things your eyes feast on, every one of you, and do not defile yourselves with the idols of Egypt; I am the LORD your God.

Deuteronomy 12:30-31

take care that you be not ensnared to follow them, after they have been destroyed before you, and that you do not inquire about their gods, saying, 'How did these nations serve their gods?--that I also may do the same.'

Ezekiel 23:8

She did not give up her whoring that she had begun in Egypt; for in her youth men had lain with her and handled her virgin bosom and poured out their whoring lust upon her.

Leviticus 18:24-30

"Do not make yourselves unclean by any of these things, for by all these the nations I am driving out before you have become unclean,

Deuteronomy 12:4

You shall not worship the LORD your God in that way.

Psalm 106:35

but they mixed with the nations and learned to do as they did.

Jeremiah 10:2-3

Thus says the LORD: "Learn not the way of the nations, nor be dismayed at the signs of the heavens because the nations are dismayed at them,

Romans 12:2

Do not be conformed to this world, but be transformed by the renewal of your mind, that by testing you may discern what is the will of God, what is good and acceptable and perfect.

Ephesians 5:7-11

Therefore do not become partners with them;

1 Peter 4:2-4

so as to live for the rest of the time in the flesh no longer for human passions 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 they mixed with the nations and learned to do as they did.
Ezekiel 20:7
And I said to them, Cast away the detestable things your eyes feast on, every one of you, and do not defile yourselves with the idols of Egypt; I am the LORD your God.
Ezekiel 23:8
She did not give up her whoring that she had begun in Egypt; for in her youth men had lain with her and handled her virgin bosom and poured out their whoring lust upon her.
Ephesians 5:7
Therefore do not become partners with them;
1 Peter 4:2
so as to live for the rest of the time in the flesh no longer for human passions but for the will of God.

And after

Leviticus 20:23
And you shall not walk in the customs of the nation that I am driving out before you, for they did all these things, and therefore I detested them.
Exodus 23:24
you shall not bow down to their gods nor serve them, nor do as they do, but you shall utterly overthrow them and break their pillars in pieces.
Deuteronomy 12:4
You shall not worship the LORD your God in that way.
Jeremiah 10:2
Thus says the LORD: "Learn not the way of the nations, nor be dismayed at the signs of the heavens because the nations are dismayed at them,
Romans 12:2
Do not be conformed to this world, but be transformed by the renewal of your mind, that by testing you may discern what is the will of God, what is good and acceptable and perfect.

The Holy Bible, English Standard Version® copyright © 2001 by Crossway Bibles, a publishing ministry of Good News Publishers.