Failure is the condiment that enhances the flavor of success.
Although failure enhances the flavor of success; It totally depends on the person if he or she wants to embrace the failure learn from it, and work to become successful.
I have known a secret for a long time and I have observed that it works, a secret to sure-shot success.
It is POSITIVE SELF-TALK.
As any normal human, I also wanted to grow and earn a good amount of money. I still remember that I wanted to work for clients that are from the US and other companies, that would pay me in their currency so that I would get paid more in INR.
I used to work hard. Burnt my midnight oil and got the opportunity to work with a company as a consultant to its clients from the comfort of my home and that too on my own terms, this happened because I was always positive to this fact that I would get a job like that and always worked on my skills.
While I was searching for 
Jobs, I used to teach kids in the USA, Ireland, and other parts of the world web development and related topics and was earning in foreign currency, but obviously, it wasn't a huge sum that could help me sustain my living for a longer period of time.
Another example of Positive Self Talk is when I wanted to buy a house. It was 2022, and I had promised my wife that we would have a house by the end of Dec 2022.
One night after dinner, we were walking on the terrace of our rented house, and she again asked me, "It's already Nov end, will we be able to buy a house?", to which I replied, "Trust me, we will be able to buy our house by the end of Dec 2022", and to our surprise, in the last week of Dec 2022, we were able to buy the house of our dream.
It is a beautiful garden-facing apartment in one of the posh localities and has all the facilities that we could have dreamt of in a big city.
Having said that it was always because we were positive about what we wanted. We never said that we would not be able to do what we had planned. Although it took us some time, we were able to achieve what we dreamt about.
As a secret to success, one should understand that Positive Self Talk is a really important thing to practice. This is because our mind comprehends the reality that we create for it. Therefore, when we say, "I will be able to do something", our mind manifests it into a reality for us and things start unfolding toward our dream.
But how does it works?
As in our old articles, we had discussed that we all are part of this universe and that we are the universe observing itself through all the individual eyes, therefore, when we talk to ourselves positively and keep on repeating positive things, the whole universe also comprehends the same thing as our reality and we are able to achieve the same in much lesser span of time.
Although the hard work will be yours. I had to work hard to get all the documents. I wouldn't have worked on documents so much hard as I did while buying the house, still, things unfolded in a way that caught momentum and we were able to do things, or else if the same momentum hadn't been there then this journey would not have been possible.
There were setbacks and frauds that we faced, but our ultimate goal of buying a house was fulfilled because we were focused on the result rather than the issues we were facing at that time.
Similarly, when you want something, then you should focus on the end result and the satisfaction that it brings, and not the problems that you face while chasing the dream.
Although you will see time in between when you would like to cry, you just try to hold yourself together and say to yourself, that you will be able to achieve what you started, and you will see that you will be able to conquer your goals with flying colors.
I don't know how many people might agree, but when you say positive things about yourself work on yourself, and also focus on your goals, then you are for sure able to achieve your dreams.