Step-by-step explanation:
When light travels from a rarer to a denser medium, it bends towards the normal. And when light travels from denser to rarer medium, it bends away from the normal. Also, from the diagram, it is clear that emergent ray will always be parallel to the incident ray.