Meanwhile, the Midianites sold him in Egypt to Potiphar, Pharaoh's officer, the captain of the bodyguard.
(New American Standard Bible)
And the Midianites sold him into Egypt unto Potiphar, an officer of Pharaoh's, and captain of the guard.
(King James Version)