Leviticus 18:24-28

24 Do not make yourselves unclean by any of these acts, for that is how the pagans made themselves unclean, those pagans who lived in the land before you and whom the Lord is driving out so that you can go in.
25 Their actions made the land unclean, and so the Lord is punishing the land and making it reject the people who lived there.
26 They did all these disgusting things and made the land unclean, but you must not do them. All of you, whether Israelites or foreigners living with you, must keep the Lord's laws and commands,
28 and then the land will not reject you, as it rejected the pagans who lived there before you.

Leviticus 18:24-28 Meaning and Commentary

INTRODUCTION TO LEVITICUS 18

In this chapter the Israelites are directed in general not to imitate the customs and practices of the Egyptians and Canaanites, but to keep the ordinances, statutes, and judgments of the Lord, Le 18:1-5; and they are instructed particularly to avoid incestuous marriages, Le 18:6-18; carnal copulation with a menstruous woman, Le 18:19; adultery, Le 18:20; letting any of their seed pass through the fire to Molech, Le 18:21; sodomy, Le 18:22; and bestiality, Le 18:23; and they are deterred from these things by observing to them the pollution and destruction which they brought on the inhabitants of Canaan, and would bring the same on them should they commit them, Le 18:24-30.

Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.