Captain And Prison in the WEB
2 verses of the World English Bible have both "captain" and "prison".
Genesis 40:3 He put them in custody in the house of the captain of the guard, into the prison, the place where Joseph was bound.
Genesis 40:4 The captain of the guard assigned them to Joseph, and he took care of them. They stayed in prison many days.