Genesis 40:7

7 He asked Par`oh's officers who were with him in custody in his master's house, saying, "Why do you look so sad today?"

Genesis 40:7 Meaning and Commentary

Genesis 40:7

And he asked Pharaoh's officers that [were] with him
The chief butler and baker that were committed to his care, and with whom he now was, in the ward of the lord's house;
this seems to confirm what is before observed, that the captain of the guard that charged Joseph with them was Potiphar his master; though indeed the keeper of the prison that was under Potiphar, the captain of the guard, might be called Joseph's lord or master, but the house could not with so much propriety be called his: saying, wherefore look ye [so] sadly today?
as they were officers, who had been in lucrative places, they lived well and merrily, and expected very probably they should be released in a short time, nothing appearing against them; but now there was a strange alteration in them, which was very visible to Joseph, and for which he expresses a concern, being of a kind, tender, and benevolent disposition, as the question he puts to them shows.

Genesis 40:7 In-Context

5 They both dreamed a dream, each man his dream, in one night, each man according to the interpretation of his dream, the butler and the baker of the king of Mitzrayim, who were bound in the prison.
6 Yosef came in to them in the morning, and saw them, and, saw that they were sad.
7 He asked Par`oh's officers who were with him in custody in his master's house, saying, "Why do you look so sad today?"
8 They said to him, "We have dreamed a dream, and there is no one who can interpret it." Yosef said to them, "Don't interpretations belong to God? Please tell it to me."
9 The chief butler told his dream to Yosef, and said to him, "In my dream, behold, a vine was in front of me,
The Hebrew Names Version is in the public domain.