Sometimes, a single failure can open the greatest doors to success. If you face an obstacle or fail at a particular point, never be saddened or grieved. Instead prepare yourself for the most amazing journey. Perhaps, just perhaps, Allah will redirect you through another route; a shortcut you never knew of, which will take you through breathtaking scenery and vast open space. Perhaps, just perhaps, it was better you failed because what you were aiming for was nothing, absolutely nothing, compared to what He has in store for you and will soon show you on this path.
Trust yourself at the point of your failure. But more importantly, trust the One Who allowed that pitfall to occur. Know that there is a reason for it, and right now, the reason may be veiled from you for a greater reason. Trust that things will turn around and the One Who was leading you then is still leading you now and is still in control of your affairs, even though your hands have left the steering wheel.
Trust Allah and keep going. Open your eyes to the different doors, ways and avenues that He opens for you. You will always see that whatever happened, was truly for the best.
… Because sometimes you see, it is a single failure that opens the greatest doors to success.