Genesis 40:7
And he asked Pharaoh’s officers that were with him in the ward of his lord’s house, saying, Wherefore look ye so sadly to day? And he asked Pharaoh’s officers that were with him in the ward of his lord’s house, saying, Wherefore look ye so sadly to day?
The two downcast men were Pharaoh's chief butler and chief baker, who had offended Pharaoh and had been put in the prison ward with Joseph and placed under his charge for him to serve them. One morning Joseph was bringing food to these officers of the king when he saw that they looked very sad. Before he asked his question, his exemplary conduct, humble deportment, and faithfulness had won the confidence of everyone in the prison.
Though he himself was unjustly deprived of liberty and suffering in confinement, he did not give way to mourning over his injustice or fix his thoughts only on his own distress. He remained patient and made his prison life useful by caring for his companions and ministering to their needs. When he observed that the officers looked very sad and troubled, he showed interest, kindness, sympathy, and attentive concern by kindly asking them why they were sad and what was troubling them.
That sympathetic inquiry relieved their distress of mind. It opened the way for them to tell him their dreams and for him to direct them to God as the one to whom interpretations belong.