He sent a man before them, Even Joseph, who was sold for a servant:
And the patriarchs, moved with envy, sold Joseph into Egypt: but God was with him,
And the Midianites sold him into Egypt unto Potiphar, an officer of Pharaoh's, and captain of the guard.
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.
And Joseph was brought down to Egypt; and Potiphar, an officer of Pharaoh, captain of the guard, an Egyptian, bought him of the hands of the Ishmeelites, which had brought him down thither.