Genesis 37:36

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

Genesis 39:1

Joseph and Potiphar’s Wife

1Now Joseph had been brought down to Egypt, and cPotiphar, an officer of Pharaoh, the captain of the guard, an Egyptian, dhad bought him from the eIshmaelites who had brought him down there.

Genesis 39:20

20And Joseph’s master took him and fput him into the gprison, the place where the king’s prisoners were confined, and he was there in prison.
Copyright information for ESV