pay (one's) debt to society
To serve the sentence given to one upon conviction of a crime. In the eyes of the law, he has paid his debt to society, so he shouldn't be facing any further punishment for his past crimes. I spent nearly 15 years in prison—I paid my debt to society!