Meanwhile, the Midianites sold Joseph in Egypt to Potiphar, one of Pharaoh’s officials, the captain of the guard.