That day when you stood in the presence of the Lord your God at Horeb, the Lord told me, “Have the people come to me and to hear what I have to say, so they may learn to have respect for me throughout their lives here on earth, and so they may teach this to their children.”
The sun stopped moving, and the moon stood still, until the nation of Israel had inflicted defeat on their enemies. (This is recorded in the Book of Jashar). The sun stopped in the middle of the sky and did not go down for around a full day.