Genesis 37:36

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

Copyright information for ESV