18 For a long time Joshua made war on all those kings. 19 Not one town made peace with the children of Israel, but only the Hivites of Gibeon: they took them all in war. 20 For the Lord made them strong in heart to go to war against Israel, so that he might give them up to the curse without mercy, and that destruction might come on them, as the Lord had given orders to Moses. 21 And Joshua came at that time and put an end to the Anakim in the hill-country, in Hebron, in Debir, in Anab, and in all the hill-country of Judah and Israel: Joshua gave them and their towns to the curse. 22 Not one of the Anakim was to be seen in the land of the children of Israel: only in Gaza, in Gath, and in Ashdod, some were still living. 23 So Joshua took all the land, as the Lord had said to Moses; and Joshua gave it to the children of Israel as their heritage, making division of it among them by their tribes. 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.