Leviticus 18:3

18:3 You must not do as they do in the land of Egypt where you have been living, and you must not do as they do in the land of Canaan into which I am about to bring you; you must not walk in their statutes.

Leviticus 18:24-30

Warning against the Abominations of the Nations

18:24 “‘Do not defile yourselves with any of these things, for the nations which I am about to drive out before you have been defiled with all these things. 18:25 Therefore the land has become unclean and I have brought the punishment for its iniquity upon it, so that the land has vomited out its inhabitants. 18:26 You yourselves must obey my statutes and my regulations and must not do any of these abominations, both the native citizen and the resident foreigner in your midst, 18:27 for the people who were in the land before you have done all these abominations, and the land has become unclean. 18:28 So do not make the land vomit you out because you defile it just as it has vomited out the nations that were before you. 18:29 For if anyone does any of these abominations, the persons who do them will be cut off from the midst of their people. 18:30 You must obey my charge to not practice any of the abominable statutes that have been done before you, so that you do not defile yourselves by them. I am the Lord your God.’”