# Genesis 40 
<a id="1" name="1"></a>
1. Some time after this, the cupbearer of the king of Egypt and his baker committed an offense against their lord the king of Egypt.
<a id="2" name="2"></a>
2. And Pharaoh was angry with his two officers, the chief cupbearer and the chief baker,
<a id="3" name="3"></a>
3. and he put them in custody in the house of the captain of the guard, in the prison where Joseph was confined.
<a id="4" name="4"></a>
4. The captain of the guard appointed Joseph to be with them, and he attended them. They continued for some time in custody. 
<a id="5" name="5"></a>
5. And one night they both dreamed—the cupbearer and the baker of the king of Egypt, who were confined in the prison—each his own dream, and each dream with its own interpretation.
<a id="6" name="6"></a>
6. When Joseph came to them in the morning, he saw that they were troubled.
<a id="7" name="7"></a>
7. So he asked Pharaoh’s officers who were with him in custody in his master’s house, “Why are your faces downcast today?”
<a id="8" name="8"></a>
8. They said to him, “We have had dreams, and there is no one to interpret them.” And Joseph said to them, “Do not interpretations belong to God? Please tell them to me.” 
<a id="9" name="9"></a>
9. So the chief cupbearer told his dream to Joseph and said to him, “In my dream there was a vine before me,
<a id="10" name="10"></a>
10. and on the vine there were three branches. As soon as it budded, its blossoms shot forth, and the clusters ripened into grapes.
<a id="11" name="11"></a>
11. Pharaoh’s cup was in my hand, and I took the grapes and pressed them into Pharaoh’s cup and placed the cup in Pharaoh’s hand.”
<a id="12" name="12"></a>
12. Then Joseph said to him, “This is its interpretation: the three branches are three days.
<a id="13" name="13"></a>
13. In three days Pharaoh will lift up your head and restore you to your office, and you shall place Pharaoh’s cup in his hand as formerly, when you were his cupbearer.
<a id="14" name="14"></a>
14. Only remember me, when it is well with you, and please do me the kindness to mention me to Pharaoh, and so get me out of this house.
<a id="15" name="15"></a>
15. For I was indeed stolen out of the land of the Hebrews, and here also I have done nothing that they should put me into the pit.” 
<a id="16" name="16"></a>
16. When 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,
<a id="17" name="17"></a>
17. and 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.”
<a id="18" name="18"></a>
18. And Joseph answered and said, “This is its interpretation: the three baskets are three days.
<a id="19" name="19"></a>
19. In 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.” 
<a id="20" name="20"></a>
20. On 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.
<a id="21" name="21"></a>
21. He restored the chief cupbearer to his position, and he placed the cup in Pharaoh’s hand.
<a id="22" name="22"></a>
22. But he hanged the chief baker, as Joseph had interpreted to them.
<a id="23" name="23"></a>
23. Yet the chief cupbearer did not remember Joseph, but forgot him. 

(ESV)