Sun, be still at Gibeon, and moon, in the Valley of Aijalon
Joshua is praying that Yahweh would make the progression of time stop on this day.
Sun ... moon
Joshua commands the sun and moon as if these were people.
Valley of Aijalon
This is the name of a place.