The bending of light as it passes from one medium to another is called refraction. The extent to which a medium causes this bending depends on its properties.
This property is scientifically termed optical density. A medium with a higher optical density causes light to slow down more and, consequently, refract more significantly.
Therefore, the ability of a medium to refract light is specifically measured by its optical density.