Genesis 40:1-6 GNT

1 Some time later the king of Egypt's wine steward and his chief baker offended the king.
2 He was angry with these two officials
3 and put them in prison in the house of the captain of the guard, in the same place where Joseph was being kept.
4 They spent a long time in prison, and the captain assigned Joseph as their servant.
5 One night there in prison the wine steward and the chief baker each had a dream, and the dreams had different meanings.
6 When Joseph came to them in the morning, he saw that they were upset.