Fact 1: a prism is used for refracting light. 
Fact 2: Refraction is the bending of light cause by a speed change when it passes through different media.
The speed of light changes when it passes from air into a prism.