Pharaoh was enraged with his servants, and he put me in prison in the house of the captain of the guards – me and the chief baker.
Now in Egypt the Midianites sold Joseph to Potiphar, one of Pharaoh’s officials, the captain of the guard.
Joseph’s master took him and threw him into the prison, the place where the king’s prisoners were confined. So he was there in the prison.