24 When they brought them out, Joshua told the commanders of his army, "Come and put your feet on the kings' necks." And they did as they were told. 25 "Don't ever be afraid or discouraged," Joshua told his men. "Be strong and courageous, for the Lord is going to do this to all of your enemies." 26 Then Joshua killed each of the five kings and impaled them on five sharpened poles, where they hung until evening. 27 As the sun was going down, Joshua gave instructions for the bodies of the kings to be taken down from the poles and thrown into the cave where they had been hiding. Then they covered the opening of the cave with a pile of large rocks, which remains to this very day.

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