Joshua 10:16-27 World English Bible (WEB)
16 These five kings fled, and hid themselves in the cave at Makkedah. 17 Joshua was told, saying, “The five kings have been found, hidden in the cave at Makkedah.”
18 Joshua said, “Roll large stones to cover the cave’s entrance, and set men by it to guard them; 19 but don’t stay there. Pursue your enemies, and attack them from the rear. Don’t allow them to enter into their cities; for Yahweh your God has delivered them into your hand.”
20 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 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 cave entrance, 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 When they brought those kings out to Joshua, 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 courageous, 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 At the time of the going down of the sun, Joshua commanded, and they took them down off the trees, and threw 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.
Joshua 10:16-27 New International Version (NIV)
Five Amorite Kings Killed
16 Now the five kings had fled and hidden in the cave at Makkedah. 17 When Joshua was told that the five kings had been found hiding in the cave at Makkedah, 18 he said, “Roll large rocks up to the mouth of the cave, and post some men there to guard it. 19 But don’t stop; pursue your enemies! Attack them from the rear and don’t let them reach their cities, for the Lord your God has given them into your hand.”
20 So Joshua and the Israelites defeated them completely, but a few survivors managed to reach their fortified cities. 21 The whole army then returned safely to Joshua in the camp at Makkedah, and no one uttered a word against the Israelites.
22 Joshua said, “Open the mouth of the cave and bring those five kings out to me.” 23 So they brought the five kings out of the cave—the kings of Jerusalem, Hebron, Jarmuth, Lachish and Eglon. 24 When they had brought these kings to Joshua, he summoned all the men of Israel and said to the army commanders who had come with him, “Come here and put your feet on the necks of these kings.” So they came forward and placed their feet on their necks.
25 Joshua said to them, “Do not be afraid; do not be discouraged. Be strong and courageous. This is what the Lord will do to all the enemies you are going to fight.” 26 Then Joshua put the kings to death and exposed their bodies on five poles, and they were left hanging on the poles until evening.
27 At sunset Joshua gave the order and they took them down from the poles and threw them into the cave where they had been hiding. At the mouth of the cave they placed large rocks, which are there to this day.