16 But these five kings went in flight secretly to a hole in the rock at Makkedah. 17 And word was given to Joshua that the five kings had been taken in a hole in the rock at Makkedah. 18 And Joshua said, Let great stones be rolled against the mouth of the hole, and let men keep watch by it: 19 But do you, without waiting, go after their army, attacking them from the back; do not let them get into their towns, for the Lord your God has given them into your hands. 20 Now when Joshua and the children of Israel had come to the end of their war of complete destruction, and had put to death all but a small band who had got safely into the walled towns, 21 All the people went back to Joshua to the tent-circle at Makkedah in peace: and no one said a word against the children of Israel. 22 Then Joshua said, Take away the stones from the mouth of the hole in the rock, and make those five kings come out to me. 23 And they did so, and made those five kings come out of the hole to him, the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon. 24 And when they had made those kings come out to Joshua, Joshua sent for all the men of Israel, and said to the chiefs of the men of war who had gone with him, Come near and put your feet on the necks of these kings. So they came near and put their feet on their necks. 25 And Joshua said to them, Have no fear and do not be troubled; be strong and take heart: for so will the Lord do to all against whom you make war. 26 Then Joshua had them put to death, hanging them on five trees, where they were till evening. 27 And when the sun went down, they were taken down from the trees, by Joshua's orders, and put into the hole where they had gone to be safe; and great stones were placed at the mouth of the hole, where they are to this 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.