Genesis 40:7

7 And he asked the eunuchs of Pharao who were with him in the prison with his master, saying, Why is it that your countenances are sad to-day?

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 And they both had a dream in one night; and the vision of the dream of the chief cupbearer and chief baker, who belonged to the king of Egypt, who were in the prison, was this.
6 Joseph went in to them in the morning, and saw them, and they had been troubled.
7 And he asked the eunuchs of Pharao who were with him in the prison with his master, saying, Why is it that your countenances are sad to-day?
8 And they said to him, We have seen a dream, and there is no interpreter of it. And Joseph said to them, Is not the interpretation of them through god? tell than to me.
9 And the chief cupbearer related his dream to Joseph, and said, In my dream a vine was before me.

The Brenton translation of the Septuagint is in the public domain.