Genesis 40:7

7 They were Pharaoh's officials, and they were in prison with Joseph in his master's house. So he asked them, "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 Then each of the two men had a dream. The men were the Egyptian king's baker and wine taster. They were being held in prison. Both of them had dreams the same night. Each of their dreams had its own meaning.
6 Joseph came to them the next morning. He saw that they were sad.
7 They were Pharaoh's officials, and they were in prison with Joseph in his master's house. So he asked them, "Why do you look so sad today?"
8 "We both had dreams," they answered. "But no one can tell us what they mean." Then Joseph said to them, "Only God knows what dreams mean. Tell me your dreams."
9 So the chief wine taster told Joseph his dream. He said to him, "In my dream I saw a vine in front of me.
Holy Bible, New International Reader's Version® Copyright © 1995, 1996, 1998 by Biblica.   All rights reserved worldwide.