They continued their journey as far as the borders of Egypt, and there they met four men, descendants of Medan, the son of Abraham, and to these they sold Joseph for five shekels. The two companies, the Ishmaelites and the Medanites, arrived in Egypt upon the same day. The latter, hearing that Potiphar, an officer of Pharaoh, the captain of the guard, was seeking a good slave, repaired to him at once, to try to dispose of Joseph to him.

Potiphar was willing to pay as much as four hundred pieces of silver, for, high as the price was, it did not seem too great for a slave that pleased him as much as Joseph. However, he made a condition. He said to the Medanites: "I will pay you the price demanded, but you must bring me the person that sold the slave to you, that I may be in a position to find out all about him, for the youth seems to me to be neither a slave nor the son of a slave.

He appears to be of noble blood. I must convince myself that he was not stolen." The Medanites brought the Ishmaelites to Potiphar, and they testified that Joseph was a slave, that they had owned him, and had sold him to the Medanites. Potiphar rested satisfied with this report, paid the price asked for Joseph, and the Medanites and the Ishmaelites went their way.