Genesis 40:4

The captain of the guard assigned them to Joseph, and he took care of them. They stayed in prison many days.

Genesis 37:36

The Midianites sold him into Egypt to Potiphar, an officer of Pharaoh's, the captain of the guard.

Genesis 39:1

Joseph was brought down to Egypt. Potiphar, an officer of Pharaoh's, the captain of the guard, an Egyptian, bought him from the hand of the Ishmaelites that had brought him down there.

Genesis 39:21-23

But the LORD was with Joseph, and showed kindness to him, and gave him favor in the sight of the keeper of the prison.

Psalm 37:5

Commit your way to the LORD. Trust also in him, and he will act.

Treasury of Scripture Knowledge

Summary

And the captain of the guard charged Joseph with them, and he served them: and they continued a season in ward.

Bible References

The captain

Genesis 37:36
The Midianites sold him into Egypt to Potiphar, an officer of Pharaoh's, the captain of the guard.
Genesis 39:1
Joseph was brought down to Egypt. Potiphar, an officer of Pharaoh's, the captain of the guard, an Egyptian, bought him from the hand of the Ishmaelites that had brought him down there.
Psalm 37:5
Commit your way to the LORD. Trust also in him, and he will act.