Genesis 50:20

20 And as for you⁺, you⁺ meant evil against me; but [the Speech of] God meant it for good, to bring to pass, as it is this day, to save many people alive.