In all things God works for the good of those who love him, who have been called according to his purpose.
Romans 8:26-30 ( ESV, Holy Bible)
26 In the same way, the Spirit helps us in our weakness. We do not know what we ought to pray for, but the Spirit himself intercedes for us through wordless groans.
27 And he who searches our hearts knows the mind of the Spirit, because the Spirit intercedes for God’s people in accordance with the will of God.
28 And we know that in all things God works for the good of those who love him, who have been called according to his purpose.
29 For those God foreknew he also predestined to be conformed to the image of his Son, that he might be the firstborn among many brothers and sisters.
30 And those he predestined, he also called; those he called, he also justified; those he justified, he also glorified.