Numbers 33:52-55
33:52 you must drive out all the inhabitants of the land before you. Destroy all their carved images, all their molten images, and demolish their high places.
33:53 You must dispossess the inhabitants of the land and live in it, for I have given you the land to possess it.
33:54 You must divide the land by lot for an inheritance among your families. To a larger group you must give a larger inheritance, and to a smaller group you must give a smaller inheritance. Everyone’s inheritance must be in the place where his lot falls. You must inherit according to your ancestral tribes.
33:55 But if you do not drive out the inhabitants of the land before you, then those whom you allow to remain will be irritants in your eyes and thorns in your side, and will cause you trouble in the land where you will be living.