atone for

atone for

To take responsibility and/or accept punishment for one's mistakes or misdeeds. I atoned for my sins before I started going to church again. I think she'll forgive you if you just atone for your mistake.

atone for something

to make amends for an error. You must atone for the bad things you have done.