I really like this.
Apparently, other Ancient Near Eastern texts include stories of both the sun and the moon stopping, not just the sun, in ways that suggest these celestial events were seen as omens. A similar idea appears in Habakkuk:
Habakkuk 3:11 (ESV)
"The sun and moon stood still in their place at the light of your arrows as they sped, at the flash of your glittering spear."
Here, the celestial bodies stand still as a sign of awe and a demonstration of the Lord’s power, particularly in connection with wartime events, such as in Joshua. How these bodies operate in the sky could also reflect expectations on the battlefield.
For example, the Greeks observed the positioning of the sun and moon as omens, interpreting them as indications of whether their deities favored them in battle. Similarly, the biblical texts may be highlighting celestial phenomena as markers of divine presence or judgment during conflict. Hence why in Joshua, the enemy armies are defeated by hailstone from the heavens.
@The Barbarian what do you think of this idea?