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.
The Canaanites regarded the sun and moon as deities. Their control by Yahweh must have deeply impressed Israel’s enemies. [Note: See Robert B. Chisholm Jr., "The Polemic against Baalism in Israel’s Early History and Literature," Bibliotheca Sacra 151:603 (July-September 1994):276-77.] The Book of "Jashar" ("righteous," Joshua 10:13) seems to have been a collection of stories of Israel’s heroes. Some of these stories, if not all of them, were in verse and commemorated God’s great acts for Israel (cf. 2 Samuel 1:18). An additional note that Yahweh fought for Israel (Joshua 10:14) reemphasized God’s initiative for His people in faithfulness to His promises.