Forgiving yourself is important, and often one of the hardest things to do. Whatever you have done before, accept it and let it go. You are not perfect nor expected to be. Forgive yourself because it's the only way to start again.
Try out this affirmation for self-forgiveness.
I am human.
I acted in the best way I was capable of at that moment.
I have grown as a person.
I accept this about myself.
I allow myself to be at peace with this.
I forgive myself.