Genesis 40:4

The captain of the guard assigned them to Joseph. He took care of them. After they had been confined for some time,

Genesis 37:36

Meanwhile, in Egypt the Midianites sold Joseph to Potiphar, one of the king's officers, who was the captain of the palace guard.

Genesis 39:1

Joseph had been taken to Egypt. Potiphar, one of Pharaoh's Egyptian officials and captain of the guard, bought him from the Ishmaelites who had taken him there.

Genesis 39:21-23

Jehovah helped him and was good to him. He even made the jailer like Joseph so much that

Psalm 37:5

Dedicate your life to Jehovah. Trust him, and he will act on your behalf.

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
Meanwhile, in Egypt the Midianites sold Joseph to Potiphar, one of the king's officers, who was the captain of the palace guard.
Genesis 39:1
Joseph had been taken to Egypt. Potiphar, one of Pharaoh's Egyptian officials and captain of the guard, bought him from the Ishmaelites who had taken him there.
Psalm 37:5
Dedicate your life to Jehovah. Trust him, and he will act on your behalf.