After marching all night from Gilgal, Joshua caught them by surprise.
Joshua therefore came upon them suddenly; for he went up from Gilgal all the night.