Genesis 40:1-8 NIV
Some time later, the cupbearer and the baker of the king of Egypt offended their master, the king of Egypt. Pharaoh was angry with his two officials, the chief cupbearer and the chief baker, and put them in custody in the house of the captain of the guard, in the same prison where Joseph was confined. The captain of the guard assigned them to Joseph, and he attended them.
After they had been in custody for some time, each of the two men—the cupbearer and the baker of the king of Egypt, who were being held in prison—had a dream the same night, and each dream had a meaning of its own.
When Joseph came to them the next morning, he saw that they were dejected. So he asked Pharaoh’s officials who were in custody with him in his master’s house, “Why do you look so sad today?”
“We both had dreams,” they answered, “but there is no one to interpret them.”
Then Joseph said to them, “Do not interpretations belong to God? Tell me your dreams.”
NIV: New International Version