Meanwhile the Midianites sold him into Egypt, to Potiphar an official of Pharaoh, the commander of the bodyguards.