2 Corinthians 1:3-9:
3 Blessed be the God and Father of our Lord Jesus Christ, the Father of mercies and God of all comfort, 4 who comforts us in all our tribulation, that we may be able to comfort those who are in any trouble, with the comfort with which we ourselves are comforted by God. 5 For as the sufferings of Christ abound in us, so our consolation also abounds through Christ. 6 Now if we are afflicted, it is for your consolation and salvation, which is effective for enduring the same sufferings which we also suffer. Or if we are comforted, it is for your consolation and salvation. 7 And our hope for you is steadfast, because we know that as you are partakers of the sufferings, so also you will partake of the consolation. 8 For we do not want you to be ignorant, brethren, of our trouble which came to us in Asia: that we were burdened beyond measure, above strength, so that we despaired even of life. 9 Yes, we had the sentence of death in ourselves, that we should not trust in ourselves but in God who raises the dead.
God is sovereign over everything. He causes and permits every seemingly good and bad thing in our lives to happen. He foresees it all, and does it with a purpose. God rules over chance (Proverbs 16:33). The purpose of God stands over that of men (Proverbs 19:21). He frustrates peoples' plans (Psalm 33:10). He also declares that His plan shall stand (Isaiah 46:10).