Pharaoh had been angry with his servants and put me in the custody of the house of the commander of the bodyguards—me and the chief of the bakers.
Meanwhile the Midianites sold him into Egypt, to Potiphar an official of Pharaoh, the commander of the bodyguards.
Then Joseph’s master took him and put him in prison, the place where the king’s prisoners were confined. So there he was, in the prison.