Why do different rays deviate differently in the prism?

Why do different rays deviate differently in the prism?

Answer:
Different wavelengths deviate differently in the prism because the angle of refraction for different colours having different wavelengths is different while passing through the glass prism.