Genesis 37:36

Meanwhile, in Egypt the Midianites sold Joseph [as a slave] to Potiphar, an officer of Pharaoh and the captain of the [royal] guard.

Genesis 37:28

Then as the Midianite [and Ishmaelite] traders were passing by, the brothers pulled Joseph up and lifted him out of the pit, and they sold him to the Ishmaelites for twenty shekels of silver. And so they took Joseph [as a captive] into Egypt.

Genesis 40:4

The captain of the guard put Joseph in charge of them, and he served them; and they continued to be in custody for some time.

Genesis 25:1-2

Abraham took another wife, whose name was Keturah.

Genesis 39:1-23

Now Joseph had been taken down to Egypt; and Potiphar, an Egyptian officer of Pharaoh, the captain of the [royal] guard, bought him from the Ishmaelites, who had taken him down there.

2 Kings 25:8

On the seventh day of the fifth month in the nineteenth year of King Nebuchadnezzar of Babylon, Nebuzaradan, captain of the bodyguard, a servant of the king of Babylon, came to Jerusalem.

Esther 1:10

On the seventh day, when the king’s heart was joyful with wine (in high spirits), he commanded Mehuman, Biztha, Harbona, Bigtha, Abagtha, Zethar, and Carkas, the seven eunuchs who served in the presence of King Ahasuerus [as his attendants],

Isaiah 56:3


Do not let the foreigner who has joined himself to the Lord say,
“The Lord will most certainly separate me from His people.”
And do not let the eunuch say, “Look, I am a dry tree.”

Treasury of Scripture Knowledge

Summary

And the Midianites sold him into Egypt unto Potiphar, an officer of Pharaoh's, and captain of the guard.

Bible References

The midianites

Genesis 37:28
Then as the Midianite [and Ishmaelite] traders were passing by, the brothers pulled Joseph up and lifted him out of the pit, and they sold him to the Ishmaelites for twenty shekels of silver. And so they took Joseph [as a captive] into Egypt.
Genesis 25:1
Abraham took another wife, whose name was Keturah.
Genesis 39:1
Now Joseph had been taken down to Egypt; and Potiphar, an Egyptian officer of Pharaoh, the captain of the [royal] guard, bought him from the Ishmaelites, who had taken him down there.