Then Joshua said, “Open the cave entrance and bring out the five kings to me from the cave.”
he gave this order, “Roll some large stones to block the entrance to the cave and have some men guard it.
The army returned to Joshua at the camp at Makkedah, and no one dared even to threaten the Israelites.
So they did, bringing out the five kings from the cave—the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon.
Only the king of Ai was captured alive, and he was brought before Joshua.
Then Samuel said, “Bring me Agag, king of the Amalekites.” Agag came to him confidently, for he thought, “The threat of being killed must have passed.”