In my general relativity textbook (Carroll), he says that "the geodesic equation (together with metric compatibility) implies that the quantity
$\epsilon =-g_{\mu\nu}\frac{dx^\mu}{d\lambda}\frac{dx^\nu}{d\lambda}$
is constant along the path. For any trajectory we can choose the parameter $\lambda$ such that $\epsilon$ is a constant; we are simply noting that this is compatible with affine parameterization along a geodesic."
Maybe I'm missing something really obvious, but where does the conservation of this quantity come from?