As for you, it was in your mind to do me evil, but God has given a happy outcome, the salvation of numbers of people, as you see today.
Read all of Genesis 50 BBE
Read Genesis 50:20 in another translation