Commentators almost universally agree that this verse is chronologically out of place. Joshua and Israel did not return to the main camp at Gilgal immediately after the battle; the actual return happens at the end of the chapter in verse 43. Scholars suggest this verse acts as a summary statement, concluding the account of the miraculous victory at Gibeon before the narrative details the rest of the southern campaign.