22Then Joshua said, “Open the mouth of the cave and bring those five kings out to me.”
23So they brought the five kings out of the cave — the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon.
24When they had brought the kings to Joshua, he summoned all the men of Israel and said to the army commanders who had accompanied him, “Come here and put your feet on the necks of these kings.” So the commanders came forward and put their feet on their necks.
25“Do not be afraid or discouraged,” Joshua said. “Be strong and courageous, for the LORD will do this to all the enemies you fight.”
26After this, Joshua struck down and killed the kings, and he hung their bodies on five trees and left them there until evening.
— Joshua 10:22-26