Genesis 37:36

Meanwhile, the Midianites sold him in Egypt to Potiphar, Pharaoh’s officer, the captain of the bodyguard.

Genesis 37:28

Then some Midianite traders passed by, so they pulled him up and lifted Joseph out of the pit, and sold him to the Ishmaelites for twenty shekels of silver. Thus they brought Joseph into Egypt.

Genesis 40:4

The captain of the bodyguard put Joseph in charge of them, and he took care of them; and they were in confinement for some time.

Genesis 25:1-2

Now 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 bodyguard, bought him from the Ishmaelites, who had taken him down there.

2 Kings 25:8

Now on the seventh day of the fifth month, which was the nineteenth year of King Nebuchadnezzar, king of Babylon, Nebuzaradan the captain of the guard, a servant of the king of Babylon, came to Jerusalem.

Esther 1:10

On the seventh day, when the heart of the king was merry with wine, he commanded Mehuman, Biztha, Harbona, Bigtha, Abagtha, Zethar and Carkas, the seven eunuchs who served in the presence of King Ahasuerus,

Isaiah 56:3

Let not the foreigner who has joined himself to the Lord say,
“The Lord will surely separate me from His people.”
Nor let the eunuch say, “Behold, 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 some Midianite traders passed by, so they pulled him up and lifted Joseph out of the pit, and sold him to the Ishmaelites for twenty shekels of silver. Thus they brought Joseph into Egypt.
Genesis 25:1
Now 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 bodyguard, bought him from the Ishmaelites, who had taken him down there.