Genesis 40:3-4
Context40:3 so he imprisoned them in the house of the captain of the guard in the same facility where Joseph was confined. 40:4 The captain of the guard appointed Joseph to be their attendant, and he served them. 1
They spent some time in custody. 2
Genesis 40:7
Context40:7 So he asked Pharaoh’s officials, who were with him in custody in his master’s house, “Why do you look so sad today?” 3