Genesis 37:36 And in Egypt the men of Midian gave him for a price to Potiphar, a captain of high position in Pharaoh's house. (Bible in Basic English)