How to deal with obstacles (with Sutta reference)
Please see this answer.

I have tried to explain in that answer, using Dhammapada verses, that Buddhism teaches thinking and acting in wholesome and skillful ways. And this can be applied to facing obstacles and challenges in life, which may come unexpectedly.