Genesis 40 New International Version (NIV)
The Cupbearer and the Baker
40 Sometime later, the cupbearer and the baker of the king of Egypt offended their master, the king of Egypt. 2 Pharaoh was angry with his two officials, the chief cupbearer and the chief baker, 3 and put them in custody in the house of the captain of the guard, in the same prison where Joseph was confined. 4 The captain of the guard assigned them to Joseph, and he attended them.
After they had been in custody for some time, 5 each of the two men—the cupbearer and the baker of the king of Egypt, who were being held in prison—had a dream the same night, and each dream had a meaning of its own.
6 When Joseph came to them the next morning, he saw that they were dejected. 7 So he asked Pharaoh’s officials who were in custody with him in his master’s house, “Why do you look so sad today?”
8 “We both had dreams,” they answered, “but there is no one to interpret them.”
Then Joseph said to them, “Do not interpretations belong to God? Tell me your dreams.”
9 So the chief cupbearer told Joseph his dream. He said to him, “In my dream I saw a vine in front of me, 10 and on the vine were three branches. As soon as it budded, it blossomed, and its clusters ripened into grapes. 11 Pharaoh’s cup was in my hand, and I took the grapes, squeezed them into Pharaoh’s cup and put the cup in his hand.”
12 “This is what it means,” Joseph said to him. “The three branches are three days. 13 Within three days Pharaoh will lift up your head and restore you to your position, and you will put Pharaoh’s cup in his hand, just as you used to do when you were his cupbearer. 14 But when all goes well with you, remember me and show me kindness; mention me to Pharaoh and get me out of this prison. 15 I was forcibly carried off from the land of the Hebrews, and even here I have done nothing to deserve being put in a dungeon.”
16 When the chief baker saw that Joseph had given a favorable interpretation, he said to Joseph, “I too had a dream: On my head were three baskets of bread.[a] 17 In the top basket were all kinds of baked goods for Pharaoh, but the birds were eating them out of the basket on my head.”
18 “This is what it means,” Joseph said. “The three baskets are three days. 19 Within three days Pharaoh will lift off your head and impale your body on a pole. And the birds will eat away your flesh.”
20 Now the third day was Pharaoh’s birthday, and he gave a feast for all his officials. He lifted up the heads of the chief cupbearer and the chief baker in the presence of his officials: 21 He restored the chief cupbearer to his position, so that he once again put the cup into Pharaoh’s hand—22 but he impaled the chief baker, just as Joseph had said to them in his interpretation.
23 The chief cupbearer, however, did not remember Joseph; he forgot him.
Genesis 41:14-46 New International Version (NIV)
14 So Pharaoh sent for Joseph, and he was quickly brought from the dungeon. When he had shaved and changed his clothes, he came before Pharaoh.
15 Pharaoh said to Joseph, “I had a dream, and no one can interpret it.But I have heard it said of you that when you hear a dream you can interpret it.”
16 “I cannot do it,” Joseph replied to Pharaoh, “but God will give Pharaoh the answer he desires.”
17 Then Pharaoh said to Joseph, “In my dream I was standing on the bank of the Nile, 18 when out of the river there came up seven cows, fat and sleek, and they grazed among the reeds. 19 After them, seven other cows came up—scrawny and very ugly and lean. I had never seen such ugly cows in all the land of Egypt. 20 The lean, ugly cows ate up the seven fat cows that came up first. 21 But even after they ate them, no one could tell that they had done so; they looked just as ugly as before. Then I woke up.
22 “In my dream I saw seven heads of grain, full and good, growing on a single stalk. 23 After them, seven other heads sprouted—withered and thin and scorched by the east wind. 24 The thin heads of grain swallowed up the seven good heads. I told this to the magicians, but none of them could explain it to me.”
25 Then Joseph said to Pharaoh, “The dreams of Pharaoh are one and the same. God has revealed to Pharaoh what he is about to do. 26 The seven good cows are seven years, and the seven good heads of grain are seven years; it is one and the same dream. 27 The seven lean, ugly cows that came up afterward are seven years, and so are the seven worthless heads of grain scorched by the east wind: They are seven years of famine.
28 “It is just as I said to Pharaoh: God has shown Pharaoh what he is about to do. 29 Seven years of great abundance are coming throughout the land of Egypt, 30 but seven years of famine will follow them. Then all the abundance in Egypt will be forgotten, and the famine will ravage the land. 31 The abundance in the land will not be remembered, because the famine that follows it will be so severe. 32 The reason the dream was given to Pharaoh in two forms is that the matter has been firmly decidedby God, and God will do it soon.
33 “And now let Pharaoh look for a discerning and wise man and put him in charge of the land of Egypt. 34 Let Pharaoh appoint commissionersover the land to take a fifth of the harvest of Egypt during the seven years of abundance. 35 They should collect all the food of these good years that are coming and store up the grain under the authority of Pharaoh, to be kept in the cities for food. 36 This food should be held in reserve for the country, to be used during the seven years of famine that will come upon Egypt, so that the country may not be ruined by the famine.”
37 The plan seemed good to Pharaoh and to all his officials. 38 So Pharaoh asked them, “Can we find anyone like this man, one in whom is the spirit of God[a]?”
39 Then Pharaoh said to Joseph, “Since God has made all this known to you, there is no one so discerning and wise as you. 40 You shall be in charge of my palace, and all my people are to submit to your orders.Only with respect to the throne will I be greater than you.”
Joseph in Charge of Egypt
41 So Pharaoh said to Joseph, “I hereby put you in charge of the whole land of Egypt.” 42 Then Pharaoh took his signet ring from his finger and put it on Joseph’s finger. He dressed him in robes of fine linen and put a gold chain around his neck. 43 He had him ride in a chariot as his second-in-command,[b] and people shouted before him, “Make way[c]!” Thus he put him in charge of the whole land of Egypt.
44 Then Pharaoh said to Joseph, “I am Pharaoh, but without your word no one will lift hand or foot in all Egypt.” 45 Pharaoh gave Joseph the name Zaphenath-Paneah and gave him Asenath daughter of Potiphera, priestof On,[d] to be his wife. And Joseph went throughout the land of Egypt.
46 Joseph was thirty years old when he entered the service of Pharaoh king of Egypt. And Joseph went out from Pharaoh’s presence and traveled throughout Egypt.