Joshua is fighting a battle and asks the LORD to stop the sun in the sky so he has more light to finish the battle. The story in the Bible has the LORD granting his wish/prayer and stops the sun in the sky.
However, we now know that even God with all His powers can’t stop the sun in the sky! Why? The sun is not moving through the sky. The earth is rotating and the sun appears to be moving through the sky.
If you want all the details please see Chapter 18. in our book listed above.