16 But these five kings had fled and hidden themselves in a cave at Makkedah. 17 And it was told Joshua, saying, "The five kings have been found hidden in the cave at Makkedah." 18 So Joshua said, "Roll large stones against the mouth of the cave, and set men by it to guard them. 19 And do not stay there yourselves, but pursue your enemies, and attack their rear guard. Do not allow them to enter their cities, for the Lord your God has delivered them into your hand." 20 Then it happened, while Joshua and the children of Israel made an end of slaying them with a very great slaughter, till they had finished, that those who escaped entered fortified cities. 21 And all the people returned to the camp, to Joshua at Makkedah, in peace. No one moved his tongue against any of the children of Israel. 22 Then Joshua said, "Open the mouth of the cave, and bring out those five kings to me from the cave." 23 And they did so, and brought out those five kings to him from the cave: the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon. 24 So it was, when they brought out those kings to Joshua, that Joshua called for all the men of Israel, and said to the captains of the men of war who went with him, "Come near, put your feet on the necks of these kings." And they drew near and put their feet on their necks. 25 Then Joshua said to them, "Do not be afraid, nor be dismayed; be strong and of good courage, for thus the Lord will do to all your enemies against whom you fight." 26 And afterward Joshua struck them and killed them, and hanged them on five trees; and they were hanging on the trees until evening. 27 So it was at the time of the going down of the sun that Joshua commanded, and they took them down from the trees, cast them into the cave where they had been hidden, and laid large stones against the cave's mouth, which remain until this very day.

Matthew Henry's Commentary on Joshua 10:16-27

Commentary on Joshua 10:15-27

(Read Joshua 10:15-27)

None moved his tongue against any of the children of Israel. This shows their perfect safety. The kings were called to an account, as rebels against the Israel of God. Refuges of lies will but secure for God's judgment. God punished the abominable wickedness of these kings, the measure of whose iniquity was now full. And by this public act of justice, done upon these ringleaders of the Canaanites in sin, he would possess his people with the greater dread and detestation of the sins of the nations that God cast out from before them. Here is a type and figure of Christ's victories over the powers of darkness, and of believers' victories through him. In our spiritual conflicts we must not be satisfied with obtaining some important victory. We must pursue our scattered enemies, searching out the remains of sin as they rise up in our hearts, and thus pursue the conquest. In so doing, the Lord will afford light until the warfare be accomplished.