Genesis 50:20: “You intended to harm me, but God intended it for good to accomplish what is now being done, the saving of many lives.”
This is Joseph telling his brothers that what they did to him (threw him in a hole, sold him into slavery, landing in jail and all the other resulting hardships he had to endure as a consequence) were God’s plan. Man intends evil; God intends good. God brings good out of bad intentions. Joseph forgave his brothers and left judgement to God.
This is a reminder to all of us that despite the crap circumstances we may find ourselves in, God has a plan and it is for good. Sickness, death, tragedy, loss of a limb, senseless violence, financial troubles, bankruptcy, emotional trauma, depression, or overall sense of being lost in this chaotic world, God is there and He is working for good in our troubles. Have faith. Trust in Him. He will do the rest.