Genesis 39:1

New International Version Bible (NIV)
Now Joseph had been taken down to Egypt. Potiphar, an Egyptian who was one of Pharaoh’s officials, the captain of the guard, bought him from the Ishmaelites who had taken him there.

Read Genesis 39:1 in other translations