Meanwhile, the Midianitesᵃ sold Joseph in Egypt to Potiphar, an officer of Pharaoh and captain of the guard.