For it was of Yahweh to harden their hearts, to come against Israel in battle, that he might utterly destroy them, that they might have no favor, but that he might destroy them, as Yahweh commanded Moses.
      I. A short account is here given of what was done in four things:-- 1. The obstinacy of the Canaanites in their opposition to the Israelites. It was strange that though it appeared so manifestly that God fought for Israel, and in every engagement the Canaanites had the worst of it, yet they stood it out to the last; not one city made peace with Israel, but the Gibeonites only, who understood the things that belonged to their peace better than their neighbours, Joshua 11:19; Joshua 11:19. It is intimated that other cities might have made as good terms for themselves, without ragged clothes and clouted shoes, if they would have humbled themselves, but they never so much as desired conditions of peace. We here are told whence this unaccountable infatuation came: It was of the Lord to harden their hearts,Joshua 11:20; Joshua 11:20. As Pharaoh's heart was hardened by his own pride and wilfulness first, and afterwards by the righteous judgment of God, to his destruction, so were the hearts of these Canaanites. To punish them for all their other follies, God left them to this, to make those their enemies whom they might have made their friends. This was it that ruined them: they came against Israel in battle, and gave the first blow, and therefore might have no favour shown them. Those know not what they do who give the provocation to divine justice, or the authorized instruments of it. Are we stronger than God? Observe here, That hardness of heart is the ruin of sinners. Those that are stupid and secure, and heedless of divine warnings, are already marked for destruction. What hope is there of those concerning whom God has said, Go, make their hearts fat? 2. The constancy of the Israelites in prosecuting this war (Joshua 11:18; Joshua 11:18): Joshua made war a long time; some reckon it five years, others seven, that were spent in subduing this land: so long God would train up Israel to war, and give them repeated instances of his power and goodness in every new victory that he gave them. 3. The conquest of the Anakim at last, Joshua 11:21; Joshua 11:22. Either this was done as they met with them where they were dispersed, as some think, or rather it should seem the Anakim had retired to their fastnesses, and so were hunted out and cut off at last, after all the rest of Israel's enemies. The mountains of Judah and Israel were the habitations of those mountains of men; but not their height, nor the strength of their caves, nor the difficulty of the passes to them, could secure, no, not these mighty men, from the sword of Joshua. The cutting off of the sons of Anak is particularly mentioned because these had been such a terror to the spies forty years before, and their bulk and strength had been thought an insuperable difficulty in the way of the reducing of Canaan, Numbers 13:28; Numbers 13:33. Even that opposition which seemed invincible was got over. Never let the sons of Anak be a terror to the Israel of God, for even their day will come to fall. Giants are dwarfs to Omnipotence; yet this struggle with the Anakim was reserved for the latter end of the war, when the Israelites had become more expert in the arts of war, and had had more experience of the power and goodness of God. Note, God sometimes reserves the sharpest trials of his people by affliction and temptation for the latter end of their days. Therefore let not him that girds on the harness boast as he that puts it off. Death, that tremendous son of Anak, is the last enemy that is to be encountered; but it is to be destroyed,1 Corinthians 15:26. Thanks be to God, who will give us the victory. 4. The end and issue of this long war. The Canaanites were rooted out, not perfectly (as we shall find after in the book of Judges), but in a good measure; they were not able to make any head either, (1.) So as to keep the Israelites out of possession of the land: Joshua took all that land,Joshua 11:16; Joshua 11:17. And we may suppose the people dispersed themselves and their families into the countries they had conquered, at least those that lay nearest to the head-quarters at Gilgal, until an orderly distribution should be made by lot, that every man might know his own. Or, (2.) So as to keep them in action, or give them any molestation (Joshua 11:23; Joshua 11:23): The land rested from war. It ended not in a peace with the Canaanites (that was forbidden), but in a peace from them. There is a rest, a rest from war, remaining for the people of God, into which they shall enter when their warfare is accomplished.