The Bhagavad Gita of the Hindus exhorts emphatically to concentrate on performing our dharma, taking profit and loss, success and failure etc., in strides. We are directed to give our hundred percent in selecting the righteous action, in completing it without wavering, and in dedicating its results to Him. The results can be either way. They are not in our hands. We are advised to treat success and failure alike. We should derive our happiness from having fulfilled our dharmic obligations to the best of our ability; our happiness should not be linked to the nature of result of our action.
This also brings to my mind the words of Tony Robbins: “There is no such thing as failure. There are only results.”