Romans 5:3-5 NLT

3 We can rejoice, too, when we run into problems and trials, for we know that they are good for us -- they help us learn to endure.
4 And endurance develops strength of character in us, and character strengthens our confident expectation of salvation.
5 And this expectation will not disappoint us. For we know how dearly God loves us, because he has given us the Holy Spirit to fill our hearts with his love.