penance
Punishment or hardship a person takes on, or is given, to show sorrow for a wrong and make up for it. It is also the Catholic sacrament of confession and, loosely, any dreary task to be endured.
Tell
suffering taken on to show sorrow
Best when
You mean hardship taken on because of a wrong, and you don't need to say whether it is harsh, religious, or done mainly to repair the harm.
Example
“He walked the pilgrimage as penance for his past.”
Branches
punishing oneself
- self-mortification denying the body to subdue it
- self-flagellation excessive self-blame, often figurative
- hair shirt a chosen, ongoing discomfort
- sackcloth public show of humbled grief
paying for the wrong
the church rite
- confession owning up, the rite, or a creed
- reconciliation a break mended, people or figures
- shrift old word for confession and pardon