Genesis 37:36

the Midianites in Egypt sold Joseph to Potiphar, a eunuch of Pharaoh, instructor of the soldiers

Other versions

King James Version

And the Midianites sold him into Egypt unto Potiphar, an officer of Pharaoh's, and captain of the guard.

English Standard Version

Meanwhile the Midianites had sold him in Egypt to Potiphar, an officer of Pharaoh, the captain of the guard.

New International Version

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