Genesis 40:4
And the chief of the executioners charged Joseph with them, and he served them. And they continued for a time under guard.
Genesis 37:36
And the Midianites sold him into Egypt to Potiphar, a eunuch of Pharaoh, the chief of the executioners.
Genesis 39:1
And Joseph was brought down to Egypt. And Potiphar, a eunuch of Pharaoh, the chief of the executioners, an Egyptian man, bought him from the Ishmaelites who had brought him down there.
Genesis 39:21-23
But Jehovah was with Joseph, and showed him mercy, and gave him favor in the sight of the keeper of the prison.
Psalm 37:5
Roll your way on Jehovah; trust also in Him, and He will work.