The Lord spoke to Moses in the plains of Moab by the Jordan [across from] Jericho,
"Tell the Israelites: When you cross the Jordan into the land of Canaan,
you must drive out all the inhabitants of the land before you, destroy all their stone images and cast images, and demolish all their high places.
You are to take possession of the land and settle in it because I have given you the land to possess.
You are to receive the land as an inheritance by lot according to your clans. Increase the inheritance for a large clan and decrease it for a small one. Whatever place the lot indicates for someone will be his. You will receive an inheritance according to your ancestral tribes.
But if you don't drive out the inhabitants of the land before you, those you allow to remain will become thorns in your eyes and in your sides; they will harass you in the land where you will live.
And what I had planned to do to them, I will do to you."