Genesis 50:20

MKJV(i) 20 But as for you, you thought evil against me, but God meant it for good, to bring to pass, as it is this day, to save a great many people alive.