Then said Joshua, Open the mouth of the cave and bring out those five kings to me from the cave.
Then Samuel said, Bring here to me Agag king of the Amalekites. And Agag came to him cheerfully. And Agag said, Surely the bitterness of death is past.
All the people returned to the camp to Joshua at Makkedah in peace; none moved his tongue against any of the Israelites.
They brought the five kings out of the cave to him–the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon.
But they took the king of Ai alive and brought him to Joshua.
Joshua said, Roll great stones to the cave's mouth, and set men to guard them.