Then spoke Joshua to Yahweh in the day when Yahweh delivered up the Amorites before the children of Israel; and he said in the sight of Israel, Sun, stand you still on Gibeon; You, Moon, in the valley of Aijalon.
Many have been puzzled by what appears to be the erratic misplacement of  Joshua 10:15, because, certainly, it may not be supposed that Joshua and all Israel precisely on that victorious day returned to Gilgal.  Some have supposed that a scribal error copied it by accident here from  Joshua 10:43; and others have considered it a prolepsis, referring parenthetically to the successful conclusion of the campaign and Joshua's return to Gilgal.  We do not know what the true answer may be.