15 Joshua returned, and all Israel with him, to the camp to Gilgal. 16 These five kings fled, and hid themselves in the cave at Makkedah. 17 Joshua was told, saying, “The five kings are found, hidden in the cave at Makkedah.” 18 Joshua said, “Roll large stones to the mouth of the cave, and set men by it to guard them; 19 but don’t stay. Pursue your enemies, and them from the rear. Don’t allow them to enter into their cities; for Yahweh your God has delivered them into your hand.” 20 It happened, when Joshua and the children of Israel had finished killing them with a very great slaughter until they were consumed, and the remnant which remained of them had entered into the fortified cities, 21 that all the people returned to the camp to Joshua at Makkedah in peace. None moved his tongue against any of the children of Israel. 22 Then Joshua said, “Open the mouth of the cave, and bring those five kings out of the cave to me.” 23 They did so, and brought those five kings out of the cave to him: the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon. 24 It happened, when they brought those kings out to Joshua, that Joshua called for all the men of Israel, and said to the chiefs of the men of war who went with him, “Come near, put your feet on the necks of these kings.”

They came near, and put their feet on their necks. 25 Joshua said to them, “Don’t be afraid, nor be dismayed. Be strong and of good courage, for Yahweh will do this to all your enemies against whom you fight.” 26 Afterward Joshua struck them, put them to death, and hanged them on five trees. They were hanging on the trees until the evening. 27 It happened at the time of the going down of the sun, that Joshua commanded, and they took them down off the trees, and cast them into the cave in which they had hidden themselves, and laid great stones on the mouth of the cave, which remain to this very day.

Matthew Henry's Commentary on Joshua 10:15-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.