This is something I encourage everyone I coach to say to themselves and out loud. For everything they do!
Too often our self talk (as well as what we say to and about others) is critical.
It's a habit. A desructive habit.
I'm not talking about using good judgement and telling it like it is to improve a situation, I'm talking about being judgemental.
If you realize you made a mistake? Good job! Not that you made the mistake - that you realize you did and can correct it!