Ye thought evil, but God meant it unto good — In order to the making Joseph a greater blessing to his family than otherwise he could have been.
Related Commentaries of Genesis 50:20
Genesis 50:20
20 But as for you, ye thought evil against me; but God meant it unto good, to bring to pass, as it is this day, to save much people alive.