Joshua and his army marched all night to Gibeon, so it was a complete surprise when he attacked them.