Then Joshua said, “Open the mouth of the cave, and bring those five kings to me out of there.”
Samuel said, “Bring me King Agag of Amalek.” Agag came to him trembling, for he thought, “Certainly the bitterness of death has come.” ,
The people returned safely to Joshua in the camp at Makkedah. And no one dared to threaten the Israelites.
That is what they did. They brought the five kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon to Joshua out of the cave.
but they captured the king of Ai alive and brought him to Joshua.
Joshua said, “Roll large stones against the mouth of the cave, and station men by it to guard the kings.