And these five kings fled, and hid themselves in the cave at Makkedah. And it was told Joshua, saying, The five kings are found, hidden in the cave at Makkedah. And Joshua said, Roll great stones unto the mouth of the cave, and set men by it to keep them: but stay not ye; pursue after your enemies, and smite the hindmost of them; suffer them not to enter into their cities: for Jehovah your God hath delivered them into your hand. And it came to pass, when Joshua and the children of Israel had made an end of slaying them with a very great slaughter, till they were consumed, and the remnant which remained of them had entered into the fortified cities, that all the people returned to the camp to Joshua at Makkedah in peace: none moved his tongue against any of the children of Israel.
Then said Joshua, Open the mouth of the cave, and bring forth those five kings unto me out of the cave. And they did so, and brought forth those five kings unto 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. And it came to pass, when they brought forth those kings unto Joshua, that Joshua called for all the men of Israel, and said unto the chiefs of the men of war that went with him, Come near, put your feet upon the necks of these kings. And they came near, and put their feet upon the necks of them. And Joshua said unto them, Fear not, nor be dismayed; be strong and of good courage: for thus shall Jehovah do to all your enemies against whom ye fight. And afterward Joshua smote them, and put them to death, and hanged them on five trees: and they were hanging upon the trees until the evening. And it came to pass at the time of the going down of the sun, that Joshua commanded, and they took them down off the trees, and cast them into the cave wherein they had hidden themselves, and laid great stones on the mouth of the cave, unto this very day.
And Joshua took Makkedah on that day, and smote it with the edge of the sword, and the king thereof: he utterly destroyed them and all the souls that were therein; he left none remaining; and he did to the king of Makkedah as he had done unto the king of Jericho.