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:26-30

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.’”