On the day that the LORD gave the Amorites over to the Israelites, Joshua spoke to the LORD in the presence of Israel: “O sun, stand still over Gibeon, O moon, over the Valley of Aijalon.”
12. Then spoke Joshua to the Lord, etc Such is the literal reading, but some expound it as meaning before Jehovah: for to speak to God, who, as piety dictates, is to be suppliantly petitioned, seems to be little in accordance with the modesty of faith, and it is immediately subjoined that Joshua addressed his words to the sun.
Here, I. Joshua resolves to assist the Gibeonites, and God encourages him in this resolve. 1. He ascended from Gilgal (Jos 10:7), that is, he designed, determined, and prepared for, this expedition to relieve Gibeon, for it is probable it was before he stirred a step that God spoke to him to encourage him.
Commenting on Joshua 10:7-14
Then spake Joshua to the Lord,.... In prayer, and entreated as follows, that the sun and moon might stand still, until the victory was complete; though the Jewish writers interpret it of a song; so the Targum, then Joshua praised, or sung praise, as in the Targum on Sol 1:1; and which is approved of by Jarchi and Kimchi: in the day when the Lord...