Genesis 40:3, 4
Genesis 40:3 NIV
and put them in custody in the house of the captain of the guard, in the same prison where Joseph was confined.
Genesis 40:4 NIV
The captain of the guard assigned them to Joseph, and he attended them. After they had been in custody for some time