Read this passage and open each verse for the full verse feed and commentary tools.
23They did so, and brought forth those five kings to him out of the cave, the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, the king of Eglon. 24It happened, when they brought forth those kings 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 the necks of them. 25Joshua said to them, Don`t be afraid, nor be dismayed; be strong and of good courage: for thus shall Yahweh do to all your enemies against whom you fight. 26Afterward Joshua struck them, and put them to death, and hanged them on five trees: and they were hanging on the trees until the evening.
Joshua 10:23-26 (WEB)