Leviticus 18:24-28 (WEB)
24 “‘Don’t defile yourselves in any of these things; for in all these the nations which I am casting out before you were defiled.
25 The land was defiled. Therefore I punished its iniquity, and the land vomited out her inhabitants.
26 You therefore shall keep my statutes and my ordinances, and shall not do any of these abominations; neither the native-born, nor the stranger who lives as a foreigner among you
27 (for the men of the land that were before you had done all these abominations, and the land became defiled),
28 that the land not vomit you out also, when you defile it, as it vomited out the nation that was before you.
About Leviticus 18: Leviticus 18 stands between the laws for priests in chapter sixteen and the yearly feasts in chapter twenty-three. It speaks to all Israelites, not just the priesthood. Moses records these commands at Sinai, shortly after the tabernacle was built. The people had left Egypt, a place of idolatry and strange customs. God wants them to look different from the nations around them. Verse four says they must not do what Egypt or Canaan did. Read the study notes
5 verses · Compare in parallel · Read all of Leviticus 18