Genesis 41:12
Now there was with us [in the prison] a young man, a Hebrew, servant to the captain of the guard; and we told him, and he interpreted our dreams for us, to each man according to the significance of his own dream.
Genesis 37:36
Meanwhile, in Egypt the Midianites sold Joseph [as a slave] to Potiphar, an officer of Pharaoh and the captain of the [royal] guard.
Genesis 40:12-19
Then Joseph said to him, “This is the interpretation of it: the three branches represent three days;
Genesis 39:1
Now Joseph had been taken down to Egypt; and Potiphar, an Egyptian officer of Pharaoh, the captain of the [royal] guard, bought him from the Ishmaelites, who had taken him down there.
Genesis 39:20
So Joseph’s master took him and put him in the prison, a place where the king’s prisoners were confined; so he was there in the prison.