Technically speaking, retribution is a punishment dealt to someone for committing a crime, so any prison sentence is an act of retribution.
Giving someone a life sentence means you (or the justice system at large) are either unwilling or unable to rehabilitate that person.