Genesis 37:36 NLT

36 Meanwhile, in Egypt, the traders sold Joseph to Potiphar, an officer of Pharaoh, the king of Egypt. Potiphar was captain of the palace guard.