36 Meanwhile the Midianites had sold him in Egypt to Potiphar, one of Pharaoh's officials, the captain of the guard.