Genesis 40:3

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

Genesis 40:3 Meaning and Commentary

Genesis 40:3

And he put them in ward in the house of the captain of the
guard
Who is generally thought to be Potiphar, since this was the office he was in, ( Genesis 39:1 ) ; unless he was dead, and there was another put into his room, or there were more than one in the same office: into the prison, the place where Joseph [was] bound;
that is, where he had been bound, and where he was still a prisoner, though not fettered and in that close confinement he had been in.

Genesis 40:3 In-Context

1 After this, the king of Egypt's cupbearer and his baker offended their master, the king of Egypt.
2 Pharaoh was angry with his two officers, the chief cupbearer and the chief baker,
3 and put them in custody in the house of the captain of the guard, in the prison where Joseph was confined.
4 The captain of the guard assigned Joseph to them, and he became their personal attendant. And they were in custody for some time.
5 The cupbearer and the baker of the king of Egypt, who were confined in the prison, each had a dream. Both had a dream on the same night, and each dream had its own meaning.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.