penance

Something you choose to do to make up for wrongdoing.