Remorse for your past conduct.
Voluntary self-punishment in order to atone for some wrongdoing.
Repentance of sins.