Genesis 40:1-6 MSG

1 As time went on, it happened that the cupbearer and the baker of the king of Egypt crossed their master, the king of Egypt.
2 Pharaoh was furious with his two officials, the head cupbearer and the head baker,
3 and put them in custody under the captain of the guard; it was the same jail where Joseph was held.
4 The captain of the guard assigned Joseph to see to their needs.
5 the king's cupbearer and baker, while being held in the jail, both had a dream on the same night, each dream having its own meaning.
6 When Joseph arrived in the morning, he noticed that they were feeling low.