Genesis 37:36

And the Midianites sold him in Egypt to Potiphar, a court official of Pharaoh, a commander of the imperial guard.

Genesis 37:28

Then Midianite traders passed by. And they drew Joseph up and brought [him] up from the pit, and they sold Joseph to the Ishmaelites for twenty [pieces of] silver. And they brought Joseph to Egypt.

Genesis 40:4

And the chief of the guard appointed Joseph [to be] with them, and he attended them. And they were in custody {many days}.

Genesis 25:1-2

Now Abraham again took a wife, and her name [was] Keturah.

Genesis 39:1-23

Now Joseph had been brought down to Egypt, and Potiphar, a court official of Pharaoh, commander of the guard, an Egyptian, bought him from the hand of the Ishmaelites who had brought him down there.

2 Kings 25:8

In the fifth month, on the seventh of the month, that is, the nineteenth year of King Nebuchadnezzar the king of Babylon, Nebuzaradan, a commander of the imperial 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 said to Mehuman, Biztha, Harbona, Bigtha, Abagtha, Zethar, and Carcas, seven of the eunuchs attending King Ahasuerus,

Isaiah 56:3

And do not let the {foreigner} [who] joins himself to Yahweh say, "Surely Yahweh will 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 Midianite traders passed by. And they drew Joseph up and brought [him] up from the pit, and they sold Joseph to the Ishmaelites for twenty [pieces of] silver. And they brought Joseph to Egypt.
Genesis 25:1
Now Abraham again took a wife, and her name [was] Keturah.
Genesis 39:1
Now Joseph had been brought down to Egypt, and Potiphar, a court official of Pharaoh, commander of the guard, an Egyptian, bought him from the hand of the Ishmaelites who had brought him down there.