18 Joshua made war a long time with all those kings. 19 There was not a town that made peace with the Israelites, except the Hivites, the inhabitants of Gibeon; all were taken in battle. 20 For it was the Lord's doing to harden their hearts so that they would come against Israel in battle, in order that they might be utterly destroyed, and might receive no mercy, but be exterminated, just as the Lord had commanded Moses. 21 At that time Joshua came and wiped out the Anakim from the hill country, from Hebron, from Debir, from Anab, and from all the hill country of Judah, and from all the hill country of Israel; Joshua utterly destroyed them with their towns. 22 None of the Anakim was left in the land of the Israelites; some remained only in Gaza, in Gath, and in Ashdod. 23 So Joshua took the whole land, according to all that the Lord had spoken to Moses; and Joshua gave it for an inheritance to Israel according to their tribal allotments. And the land had rest from war.
Matthew Henry's Commentary on Joshua 11:18-23
Commentary on Joshua 11:15-23
(Read Joshua 11:15-23)
Never let the sons of Anak be a terror to the Israel of God, for their day to fall will come. 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. That which was now done, is compared with what had been said to Moses. God's word and his works, if viewed together, will be found mutually to set each other forth. If we make conscience of our duty, we need not question the performance of the promise. But the believer must never put off his armour, or expect lasting peace, till he closes his eyes in death; nay, as his strength and usefulness increase, he may expect more heavy trials; yet the Lord will not permit any enemies to assault the believer till he has prepared him for the battle. Christ Jesus ever lives to plead for his people, and their faith shall not fail, however Satan may be permitted to assault them. And however tedious, sharp, and difficult the believer's warfare, his patience in tribulation may be encouraged by the joyfulness of hope; for he will, ere long, rest from sin and from sorrow in the Canaan above.