Every experience exercises virtue
Virtue is what you keep when you have reached your goals. All fruits of your labor will perish, but the lessons learned and the virtues trained will always be with you during new adventures and challenges. So virtues are like the marks on stones when they have stumbled down the mountains. The purpose of the marks or wounds of life is to teach us how to become more refined and advanced in our next journeys.
It helps us to aim for higher goals and to keep on moving forward in always reaching our best potential. Just like a muscle will never be more develop if you neglect to use it, virtues will not be developed when you ignore life challenges.
Being aware of the growth you experience during times of failure and success will help you in staying motivated for what you want to achieve. You then recognize that every failure holds an equilavent seed for success and that during the journey you are always becoming a greater version of yourself.
So the purpose of attaining fruits or material ends for your labor is purely one of self-advancement and intrinsic growth. The fruits are merely the reflection of your inner evolvement.
Being aware of this can help you in remaining a sense of equanimity when despair is knocking on your door and you don’t know how to go through it. There is reason for everything and guidance for all, so don’t loose yourself in the fears that can accompany your experiences.