The battle took place on a Friday. Joshua knew it would pain the people deeply to be compelled to desecrate the holy Sabbath day. Besides, he noticed that the heathen were using sorcery to make the heavenly hosts intercede for them in the fight against the Israelites. He, therefore, pronounced the Name of the Lord, and the sun, moon and stars stood still.

The sun at first refused to obey Joshua's behest, seeing that he was older than man by two days. Joshua replied that there was no reason why a free-born youth should refrain from enjoining silence upon an old slave whom he owns, and had not God given heaven and earth to our father Abraham? Nay, more than this, had not the sun himself bowed down like a slave before Joseph? "But," said the sun, "who will praise God if I am silent?" Whereupon Joshua: "Be thou silent, and I will intone a song of praise." And he sang thus: