Penance
Penance was an act of voluntary self-punishment done out of repentance for sins one committed that was also comparable to confession.

When Q recalled in 2372, Q's being made mortal following his banishment from the Q Continuum for his crimes in 2366, Q explained that his "penance has ended" and that he was "a born again Q." ()

External link 
 

Mythology