And it happened [that] after these things the cupbearer of the king of Egypt and [his] baker did wrong against their lord, against the king of Egypt. And Pharaoh was angry with his two officials, with the chief cupbearer and chief baker. read more.
And he put them in custody in the house of the chief of the guard, into the prison where Joseph was confined. And the chief of the guard appointed Joseph [to be] with them, and he attended them. And they were in custody {many days}. And the two of them, the cupbearer and the baker of the king of Egypt, who [were] confined in the prison, dreamed a dream, each his own dream, with its own interpretation. When Joseph came to them in the morning he looked at them, and behold, they were troubled. And he asked the court officials of Pharaoh that [were] with him in the custody of his master's house, "Why [are] your faces sad today?" And they said to him, "We [each] dreamed a dream, but there is no one to interpret it." And Joseph said to them, "Do not interpretations belong to God? Please tell [them] to me." Then the chief cupbearer told his dream to Joseph, and he said to him, "In my dream, now behold, [there was] a vine before me, and on the vine [were] three branches. And as it budded, its blossoms came up, [and] its clusters of grapes grew ripe. And the cup of Pharaoh [was] in my hand, and I took the grapes and squeezed them into the cup of Pharaoh. Then I placed the cup into the hand of Pharaoh." Then Joseph said to him, "This [is] its interpretation: The three branches, they [are] three days. In three days Pharaoh will lift up your head and will restore you to your office. And you shall put the cup of Pharaoh into his hand as [was] formerly the custom, when you were his cupbearer.