Genesis 40:3

sent them to the prison of the leader of the military, in which Joseph also was a prisoner

Other versions

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.

English Standard Version

and he put them in custody in the house of the captain of the guard, in the prison where Joseph was confined.

New International Version

and put them in custody in the house of the captain of the guard, in the same prison where Joseph was confined.