Genesis 50:20

NHEB(i) 20 As for you, you meant evil against me, but God turned it into good in order to bring about this present result, to save the lives of many people.