When a ray of light travels from an optically denser medium to an optically rarer medium, it always bends away from the normal.
let's see how
According to Snell's Law:
For optically denser medium, refractive index is greater than that of the rarer medium
. Thus, the angle of refraction will be greater than the angle of incidence i.e. it bends away from the normal.