Life is full of many learning experiences, also known as mistakes. Ask yourself frequently, "What can I learn from this?" Some people make mistakes and then berate themselves for making those mistakes. They can be especially critical of themselves when they make a similar mistake a second and third time. Some people even say to themselves, "Why do I keep making the same mistakes over and over again?" This question takes a person in the wrong direction.
It's valuable to recognize when you make a mistake. "That was a mistake." But don't focus on the fact that you keep making the same mistake; instead, the next step is to ask yourself, "What can I learn from this to avoid similar mistakes in the future?"
Don't obsess about your mistakes. Then your mind keeps its focus on what you did wrong and what you don't want to do in the future. Keep your mind on doing the right things in the right ways. Then your mind is focused on what you do want.
When you ask yourself, "What can I learn from this?" you are becoming more aware that you are becoming wiser and wiser. That's the mindset that you want for yourself.
(from Rabbi Zelig Pliskin's book: "Conversations With Yourself", pp.61-2) [Artscroll.com])