Lev 18:25-30

25Thus the land became defiled; and I punished it for its iniquity, and the land vomited out its inhabitants.26But you shall keep my statutes and my ordinances and commit none of these abominations, either the citizen or the alien who resides among you27(for the inhabitants of the land, who were before you, committed all of these abominations, and the land became defiled);28otherwise the land will vomit you out for defiling it, as it vomited out the nation that was before you.29For whoever commits any of these abominations shall be cut off from their people.30So keep my charge not to commit any of these abominations that were done before you, and not to defile yourselves by them: I am the Lord your God.