As for you, you meant evil against me; but God meant it for good, to bring it about that many people should be kept alive, as they are today.
Read all of Genesis 50 RSV
Read Genesis 50:20 in another translation