Bible reference (New Testament) ~ Romans 5:3-5
When problems come your initial response is critical! You are establishing the thought pattern which is foundational in your thinking as you work through struggles. As quick as possible look to God and say I can do this! Working through and overcoming in the situation will make you a better, stronger person.
3 We can rejoice, too, when we run into problems and trials, for we know that they help us develop endurance. 4 And endurance develops strength of character, and character strengthens our confident hope of salvation. 5 And this hope will not lead to disappointment. For we know how dearly God loves us, because he has given us the Holy Spirit to fill our hearts with his love.