Lev 18:26-28

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.