Genesis 40:4
And the captain of the guard charged Joseph with them, and he ministered unto them: and they continued a season in ward.
Genesis 37:36
And the Midianites sold him into Egypt unto Potiphar, an officer of Pharaoh's, the captain of the guard.
Genesis 39:1
And Joseph was brought down to Egypt; and Potiphar, an officer of Pharaoh's, the captain of the guard, an Egyptian, bought him of the hand of the Ishmaelites, that had brought him down thither.
Genesis 39:21-23
But Jehovah was with Joseph, and showed kindness unto him, and gave him favor in the sight of the keeper of the prison.
Psalm 37:5
Commit thy way unto Jehovah; Trust also in him, and he will bring it to pass.