Genesis 50:20

ASV(i) 20 And as for you, ye meant evil against me; but God meant it for good, to bring to pass, as it is this day, to save much people alive.