Genesis 40:16-22
English Standard Version
Chapter 40
16When the chief baker saw that the interpretation was favorable, he said to Joseph, "I also had a dream: there were three cake baskets on my head, 17and in the uppermost basket there were all sorts of baked food for Pharaoh, but the birds were eating it out of the basket on my head." 18And Joseph answered and said, "This is its interpretation: the three baskets are three days. 19In three days Pharaoh will lift up your head — from you! — and hang you on a tree. And the birds will eat the flesh from you."
20On the third day, which was Pharaoh 's birthday, he made a feast for all his servants and lifted up the head of the chief cupbearer and the head of the chief baker among his servants.
21He restored the chief cupbearer to his position, and he placed the cup in Pharaoh 's hand.
22But he hanged the chief baker, as Joseph had interpreted to them.