Numbers 33:50-56

50 Yahweh spoke to Moses in the plains of Moab by the Jordan at Jericho, saying,  51 Speak to the children of Israel, and tell them, When you pass over the Jordan into the land of Canaan,  52 then you shall drive out all the inhabitants of the land from before you, and destroy all their figured stones, and destroy all their molten images, and demolish all their high places:  53 and you shall take possession of the land, and dwell therein; for to you have I given the land to possess it.  54 You shall inherit the land by lot according to your families; to the more you shall give the more inheritance, and to the fewer you shall give the less inheritance: wherever the lot falls to any man, that shall be his; according to the tribes of your fathers shall you inherit.  55 But if you will not drive out the inhabitants of the land from before you, then shall those who you let remain of them be as pricks in your eyes, and as thorns in your sides, and they shall vex you in the land in which you dwell.  56 It shall happen that as I thought to do to them, so will I do to you.