Genesis 50:20

50:20 As for you, you meant evil against me, but God meant it for good, to bring to pass, as it is this day, to save many people alive.
-World English Bible

Other Translation

50:20 But as for you, ye thought evil against me; [but] God meant it unto good, to bring to pass, as [it is] this day, to save much people alive.
-King James Version