Genesis 40:7

7 So he asked Pharaoh's officers who were in custody with him in his master's house, "Why are your faces 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 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.
6 When Joseph came to them in the morning, he saw that they looked distraught.
7 So he asked Pharaoh's officers who were in custody with him in his master's house, "Why are your faces sad today?"
8 "We had dreams," they said to him, "but there is no one to interpret them." Then Joseph said to them, "Don't interpretations belong to God? Tell me [your dreams]."
9 So the chief cupbearer told his dream to Joseph: "In my dream there was a vine in front of me.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.