New American Standard Bible (NASB)
Genesis 40
17 and in the top basket there were some of all sorts of baked food for Pharaoh, and the birds were eating them out of the basket on my head."
18 Then Joseph answered and said, "This is its interpretation: the three baskets are three days;
19 within three more days Pharaoh will lift up your head from you and will hang you on a tree, and the birds will eat your flesh off you."
20 Thus it came about on the third day, which was Pharaoh’s birthday, that he made a feast for all his servants; and he lifted up the head of the chief cupbearer and the head of the chief baker among his servants.
21 He restored the chief cupbearer to his office, and he put the cup into Pharaoh’s hand;
22 but he hanged the chief baker, just as Joseph had interpreted to them.
23 Yet the chief cupbearer did not remember Joseph, but forgot him.
Genesis 41
1 Now it happened at the end of two full years that Pharaoh had a dream, and behold, he was standing by the Nile.
2 And lo, from the Nile there came up seven cows, sleek and fat; and they grazed in the marsh grass.
3 Then behold, seven other cows came up after them from the Nile, ugly and gaunt, and they stood by the other cows on the bank of the Nile.
4 The ugly and gaunt cows ate up the seven sleek and fat cows. Then Pharaoh awoke.