We know that in everything God works for the good of those who love him.
When the Miditanite traders came by the brothers took Joseph out of the well.
They sold him to the Ishmaelite for eight ounce of silver.
And the Ishmaelite took him to Egypt.