Should the criminal justice system focus more on rehabilitation than retribution?

In your view is the point of prison retribution or rehabilitation?