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.
      (1.) Here is the prayer of Joshua that the sun might stand still. I call it his prayer, because it is said (Joshua 10:12; Joshua 10:12) he spoke to the Lord; as Elijah, though we read (1 Kings 17:1) only of his prophesying of the drought, yet is said (James 5:17) to pray for it. Observe, [1.] An instance of Joshua's unwearied activity in the service of God and Israel, that though he had marched all night and fought all day, and, one might expect, would be inclined to repose himself and get a little sleep, and give his army some time to rest--that, like the hireling, he would earnestly desire the shadow, and bid the night welcome, when he had done such a good day's work--yet, instead of this, he wishes for nothing so much as the prolonging of the day. Note, Those that wait on the Lord and work for him shall renew their strength, shall run and not be weary, shall walk and not faint,Isaiah 40:31. [2.] An instance of his great faith in the almighty power of God, as above the power of nature, and able to control and alter the usual course of it. No doubt Joshua had an extraordinary impulse or impression upon his spirit, which he knew to be of divine origin, prompting him to desire that this miracle might be wrought upon this occasion, else it would have been presumption in him to desire or expect; the prayer would not have been granted by the divine power, if it had not been dictated by the divine grace. God wrought this faith in him, and then said, "According to thy faith, and thy prayer of faith, be it unto thee." It cannot be imagined, however, that such a thing as this should have entered into his mind if God had not put it there; a man would have had a thousand projects in his head for the completing of the victory before he would have thought of desiring the sun to stand still; but even in the Old-Testament saints the Spirit made intercession according to the will of God. What God will give he inclines the hearts of his praying people to ask, and for what he will do he will be enquired of, Ezekiel 36:37. Now, First, It looked great for Joshua to say, Sun, stand thou still. His ancestor Joseph had indeed dreamed that the sun and moon did homage to him; but who would have thought that, after it had been fulfilled in the figure, it should be again fulfilled in the letter to one of his posterity? The prayer is thus expressed with authority, because it was not an ordinary prayer, such as is directed and supported only by God's common providence or promise, but the prayer of a prophet at this time divinely inspired for this purpose; and yet it intimates to us the prevalency of prayer in general, so far as it is regulated by the word of God, and may remind us of that honour put upon prayer (Joshua 45:11), Concerning the work of my hands command you me. He bids the sun stand still upon Gibeon, the place of action and the seat of war, intimating that what he designed in this request was the advantage of Israel against their enemies; it is probable that the sun was now declining, and that he did not call for the lengthening out of the day until he observed it hastening towards it period. He does likewise, in the name of the King of kings, arrest the moon, perhaps because it was requisite for the preserving of the harmony and good order of the spheres that the course of the rest of the heavenly bodies should be stayed likewise, otherwise, while the sun shone, he needed not the moon; and here he mentions the valley of Ajalon, which was near to Gibeon, because there he was at that time. Secondly, It was bold indeed to say so before Israel, and argues a very strong assurance of faith. If the event had not answered the demand, nothing could have been a greater slur upon him; the Israelites would have concluded he was certainly going mad, or he would never have talked so extravagantly. But he knew very well God would own and answer a petition which he himself directed to be drawn up and presented, and therefore was not afraid to say before all Israel, calling them to observe this work of wonder, Sun, stand thou still, for he was confident in him whom he had trusted. He believed the almighty power of God, else he could not have expected that the sun, going on in its strength, driving in a full career, and rejoicing as a strong man to run a race, should be stopped in an instant. He believed the sovereignty of God in the kingdom of nature, else he could not have expected that the established law and course of nature should be changed and interrupted, the ordinances of heaven, and the constant usage according to these ordinances, broken in upon. And he believed God's particular favour to Israel above all people under the sun, else he could not have expected that, to favour them upon an emergency with a double day, he should (which must follow of course) amaze and terrify so great a part of the terrestrial globe with a double night at the same time. It is true, he causeth the sun to shine upon the just and the unjust; but for this once the unjust shall wait for it beyond the usual time, while, in favour to righteous Israel, it stands still.