Genesis 37:36 And the Medanites have sold him unto Egypt, to Potiphar, a eunuch of Pharaoh, head of the executioners. (Young's Literal Translation)