The Midianites, meanwhile, sold Joseph in Egypt to Potiphar, an official of Pharaoh and his chief steward.