Genesis 40:3 in the King James Version
And he put them in ward in the house of the captain of the guard, into the prison, the place where Joseph was bound.
Context
2 Pharaoh was angry with his two officers, the chief cup bearer and the chief baker.
3 He put them in custody in the house of the captain of the guard, into the prison, the place where Joseph was bound.
4 The captain of the guard assigned them to Joseph, and he took care of them. They stayed in prison many days.