“All who, without commission from God, dare to execute private revenge, and who, from ambition, covetousness, or resentment, wage war and desolate kingdoms, must one day answer for it. But if God, instead of sending an earthquake, a pestilence, or a famine, be pleased to authorize and command any people to avenge his cause, such a commission surely is just and right. The Israelites could show such a commission, though no persons now can do so. Their wars were begun and carried on expressly by Divine direction, and they were enabled to conquer by miracles. Unless it can be proved that the wicked Canaanites did not deserve their doom, objectors only prove their dislike to God, and their love to his enemies. Man makes light of the evil of sin, but God abhors it. This explains the terrible executions of the nations which had filled the measure of their sins.” Matthew Henry
Numbers 33:51 “Speak to the children of Israel, and say to them: ‘When you have crossed the Jordan into the land of Canaan,52 then you shall drive out all the inhabitants of the land from before you, destroy all their engraved stones, destroy all their molded images, and demolish all their thigh places;53 you shall dispossess the inhabitants of the land and dwell in it, for I have given you the land to possess.54 And you shall divide the land by lot as an inheritance among your families; to the larger you shall give a larger inheritance, and to the smaller you shall give a smaller inheritance; there everyone’s inheritance shall be whatever falls to him by lot. You shall inherit according to the tribes of your fathers.55 But if you do not drive out the inhabitants of the land from before you, then it shall be that those whom you let remain shall be irritants in your eyes and thorns in your sides, and they shall harass you in the land where you dwell.