The sun stood still, and the moon stayed, Until the nation had avenged themselves of their enemies. Isn't this written in the book of Jashar? The sun stayed in the midst of the sky, and didn't hurry to go down about a whole day.
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 ).