Consider a pencil of light rays in a homogenous medium that is perpendicular to some surface. Pass the pencil of rays through an arbitrary amount of reflections and refractions, then let it emerge in some other homogenous medium. The theorem states that the resulting pencil of light rays is still perpendicular to some other surface.