Is there a non integrable  $2$ dimensional  distribution $D$ of a $3$ dimensional  Riemannian manifold such that the distribution is totally geodesic in the following sence:

Every geodesic whose tangent vector of its intitial  point is tangent to the distribution then the tangent vector  at all its points is tangent to $D$, too.