Genesis 50:20

ISV(i) 20 As far as you’re concerned, you were planning evil against me, but God intended it for good, planning to bring about the present result so that many people would be preserved alive.