Genesis 40:4

And the captain of the guard charged Joseph with them, and he served them; and they continued for days in prison.

Genesis 37:36

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

Genesis 39:1

And Joseph was brought down to Egypt; and Potiphar, an officer of Pharaoh, captain of the guard, an Egyptian, bought him from the hands of the Ishmeelites, who had brought him down there.

Genesis 39:21-23

But the LORD was with Joseph and showed him mercy and gave him grace in the sight of the prince of the house of the prison.

Psalm 37:5

Gimel Turn thy way unto the LORD and wait in him, and he shall bring it to pass.

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
And the Midianites sold him into Egypt unto Potiphar, an officer of Pharaoh's and captain of the guard.
Genesis 39:1
And Joseph was brought down to Egypt; and Potiphar, an officer of Pharaoh, captain of the guard, an Egyptian, bought him from the hands of the Ishmeelites, who had brought him down there.
Psalm 37:5
Gimel Turn thy way unto the LORD and wait in him, and he shall bring it to pass.