Lev 20:22 “You will therefore keep all my prescriptions and all my rules and do them, that the land where I am bringing you to stay may not vomit you out.
Lev 20:23 And you will not walk in the prescriptions of the nation that I am driving out before you, because they did all these things, and therefore I detested them.
Lev 20:24 But I have said to you, ‘You will inherit their land, and I will give it to you to possess, a land flowing with milk and honey.’ I am Yahveh your God, who has divided you from the peoples.
Lev 20:25 You will therefore separate the pure beast from the contaminated, and the contaminated bird from the pure. You will not make your souls detestable by beast or by bird or by anything with which the ground crawls, which I have divided for you to consider contaminated.
Lev 20:26 You will be holy to me, because I Yahveh am holy and have divided you from the peoples, that you should be mine.
Lev 20:27 “A man or a woman who is a medium or a necromancer will surely be put to death. They will be stoned with stones; their blood will be upon them.”
they did all these things
The nations being evicted from the promised land had offended God by their practises, the very things that Israel was being commanded not to do. He divided the light from the darkness, and he divided his holy people from the depraved. The pagans listened to their mediums and necromancers and were led into sin, thus the land vomited them out. The LORD warned his people that they also were in danger of losing the promised land, if they listen to the wrong voice.
LORD, guide our ears, so that we listen to your voice, and avoid sin and judgement.