It happened, when they brought forth those kings to Joshua, that Joshua called for all the men of Israel, and said to the chiefs of the men of war who went with him, Come near, put your feet on the necks of these kings. They came near, and put their feet on the necks of them.
So Joshua returned, and all Israel with him, to the camp of Gilgal. But the five kings hid themselves in a cave. And so they came and told Joshua these five kings were hiding in the caves. So Joshua said, Throw a bunch of stones over the cave, seal it up, and stand outside and guard the thing ( Joshua 10:15-18 ).