Genesis 50:20

50:20 As for you, you meant to harm me, but God intended it for a good purpose, so he could preserve the lives of many people, as you can see this day.