As light goes into a medium which is denser, the light ray will 'bend' toward the normal. When it goes back into the less dense medium (with a lower refractive index), it will bend back through the same angle as when it came in (if the surface at exit is parallel to the surface at entry).