Genesis 40:14-23 NLT

14 And please have some pity on me when you are back in his favor. Mention me to Pharaoh, and ask him to let me out of here.
15 For I was kidnapped from my homeland, the land of the Hebrews, and now I'm here in jail, but I did nothing to deserve it."
16 When the chief baker saw that the first dream had such a good meaning, he told his dream to Joseph, too. "In my dream," he said, "there were three baskets of pastries on my head.
17 In the top basket were all kinds of bakery goods for Pharaoh, but the birds came and ate them."
18 "I'll tell you what it means," Joseph told him. "The three baskets mean three days.
19 Three days from now Pharaoh will cut off your head and impale your body on a pole. Then birds will come and peck away at your flesh."
20 Pharaoh's birthday came three days later, and he gave a banquet for all his officials and household staff. He sent for his chief cup-bearer and chief baker, and they were brought to him from the prison.
21 He then restored the chief cup-bearer to his former position,
22 but he sentenced the chief baker to be impaled on a pole, just as Joseph had predicted.
23 Pharaoh's cup-bearer, however, promptly forgot all about Joseph, never giving him another thought.