Joshua 10:20-22 New King James Version (NKJV)

20. Then it happened, while Joshua and the children of Israel made an end of slaying them with a very great slaughter, till they had finished, that those who escaped entered fortified cities.

21. And all the people returned to the camp, to Joshua at Makkedah, in peace.No one moved his tongue against any of the children of Israel.

22. Then Joshua said, “Open the mouth of the cave, and bring out those five kings to me from the cave.”

Joshua 10