Explanations:
On the first surface, the incident ray bends towards the normal i.e. towards the base and splits into different color bands. Upon striking the second surface each band is deviated away from the normal which is towards the base and hence the emergent ray is bent towards the base of the prism.