When light travels from a medium in which it moves fast (such as air) to a medium in which it moves slower (such as water or glass), it bends toward the normal line.
The normal line is an imaginary line perpendicular to the surface at the point of incidence. According to Snell's Law, the angle of refraction changes based on the speed of light in the two different media. When light enters a medium where it travels more slowly, its direction changes toward the normal.