Corollary 4.2.5. If \(f\colon X \to Y\) is a left (resp. right) fibration and \(Y\) is a groupoid, then also \(X\) is a groupoid.

From Section 4.2, Left and right fibrations.