Makes me think of this verse:
Therefore I am well content with weaknesses, with insults, with distresses, with persecutions, with difficulties, for Christ's sake; for when I am weak, then I am strong.
-2 Cor. 12:10
Other verses I love:
Consider it all joy, my brethren, when you encounter various trials, knowing that the testing of your faith produces endurance. And let endurance have its perfect result, that you may be perfect and complete lacking in nothing. But if any of you lacks wisdom, let him ask of God, who gives to all generously and without reproach, and it will be given to him.