World English Bible
Genesis 40 (WEBP)
 After these things, the butler of the king of Egypt and his baker offended their lord, the king of Egypt.
 Pharaoh was angry with his two officers, the chief cup bearer and the chief baker.
 He put them in custody in the house of the captain of the guard, into the prison, the place where Joseph was bound.
 The captain of the guard assigned them to Joseph, and he took care of them. They stayed in prison many days.
 They both dreamed a dream, each man his dream, in one night, each man according to the interpretation of his dream, the cup bearer and the baker of the king of Egypt, who were bound in the prison.
 Joseph came in to them in the morning, and saw them, and saw that they were sad.
 He asked Pharaoh’s officers who were with him in custody in his master’s house, saying, “Why do you look so sad today?”
 They said to him, “We have dreamed a dream, and there is no one who can interpret it.” Joseph said to them, “Don’t interpretations belong to God? Please tell it to me.”
 The chief cup bearer told his dream to Joseph, and said to him, “In my dream, behold, a vine was in front of me,
 and in the vine were three branches. It was as though it budded, it blossomed, and its clusters produced ripe grapes.
 Pharaoh’s cup was in my hand; and I took the grapes, and pressed them into Pharaoh’s cup, and I gave the cup into Pharaoh’s hand.”
 Joseph said to him, “This is its interpretation: the three branches are three days.
 Within three more days, Pharaoh will lift up your head, and restore you to your office. You will give Pharaoh’s cup into his hand, the way you did when you were his cup bearer.
 But remember me when it is well with you. Please show kindness to me, and make mention of me to Pharaoh, and bring me out of this house.
 For indeed, I was stolen away out of the land of the Hebrews, and here also I have done nothing that they should put me into the dungeon.”
 When the chief baker saw that the interpretation was good, he said to Joseph, “I also was in my dream, and behold, three baskets of white bread were on my head.
 In the uppermost basket there were all kinds of baked food for Pharaoh, and the birds ate them out of the basket on my head.”
 Joseph answered, “This is its interpretation. The three baskets are three days.
 Within three more days, Pharaoh will lift up your head from off you, and will hang you on a tree; and the birds will eat your flesh from off you.”
 On the third day, which was Pharaoh’s birthday, he made a feast for all his servants, and he lifted up the head of the chief cup bearer and the head of the chief baker among his servants.
 He restored the chief cup bearer to his position again, and he gave the cup into Pharaoh’s hand;
 but he hanged the chief baker, as Joseph had interpreted to them.
 Yet the chief cup bearer didn’t remember Joseph, but forgot him.
Scripture quotations are taken from The World English Bible™ of eBible.org, 2020 stable text edition. It is in the public domain.
King James w/Strong’s #s
Genesis 40 (KJVS)
 And it came to pass after H310 these things H1697, [that] the butler H8248 (8688) of the king H4428 of Egypt H4714 and [his] baker H644 (8802) had offended H2398 (8804) their lord H113 the king H4428 of Egypt H4714.
 And Pharaoh H6547 was wroth H7107 (8799) against H5921 two H8147 [of] his officers H5631, against the chief H8269 of the butlers H8248 (8688), and against the chief H8269 of the bakers H644 (8802).
 And he put H5414 (8799) them in ward H4929 in the house H1004 of the captain H8269 of the guard H2876, into the prison H1004 H5470, the place H4725 where Joseph H3130 [was] bound H631 (8803).
 And the captain H8269 of the guard H2876 charged H6485 (8799) Joseph H3130 with them, and he served H8334 (8762) them: and they continued a season H3117 in ward H4929.
 And they dreamed H2492 (8799) a dream H2472 both of them H8147, each man H376 his dream H2472 in one H259 night H3915, each man H376 according to the interpretation H6623 of his dream H2472, the butler H8248 (8688) and the baker H644 (8802) of the king H4428 of Egypt H4714, which [were] bound H631 (8803) in the prison H1004 H5470.
 And Joseph H3130 came in H935 (8799) unto them in the morning H1242, and looked H7200 (8799) upon them, and, behold, they [were] sad H2196 (8802).
 And he asked H7592 (8799) Pharaoh’s H6547 officers H5631 that [were] with him in the ward H4929 of his lord’s H113 house H1004, saying H559 (8800), Wherefore look H6440 ye [so] sadly H7451 to day H3117?
 And they said H559 (8799) unto him, We have dreamed H2492 (8804) a dream H2472, and [there is] no interpreter H6622 (8802) of it. And Joseph H3130 said H559 (8799) unto them, [Do] not interpretations H6623 [belong] to God H430? tell me H5608 (8761) [them], I pray you.
 And the chief H8269 butler H8248 (8688) told H5608 (8762) his dream H2472 to Joseph H3130, and said H559 (8799) to him, In my dream H2472, behold, a vine H1612 [was] before me H6440;
 And in the vine H1612 [were] three H7969 branches H8299: and it [was] as though it budded H6524 (8802), [and] her blossoms H5322 shot forth H5927 (8804); and the clusters H811 thereof brought forth ripe H1310 (8689) grapes H6025:
 And Pharaoh’s H6547 cup H3563 [was] in my hand H3027: and I took H3947 (8799) the grapes H6025, and pressed H7818 (8799) them into Pharaoh’s H6547 cup H3563, and I gave H5414 (8799) the cup H3563 into Pharaoh’s H6547 hand H3709.
 And Joseph H3130 said H559 (8799) unto him, This [is] the interpretation H6623 of it: The three H7969 branches H8299 [are] three H7969 days H3117:
 Yet H5750 within three H7969 days H3117 shall Pharaoh H6547 lift up H5375 (8799) thine head H7218, and restore H7725 (8689) thee unto thy place H3653: and thou shalt deliver H5414 (8804) Pharaoh’s H6547 cup H3563 into his hand H3027, after the former H7223 manner H4941 when thou wast his butler H8248 (8688).
 But think H2142 (8804) on me when it shall be well H3190 (8799) with thee, and shew H6213 (8804) kindness H2617, I pray thee, unto me, and make mention H2142 (8689) of me unto Pharaoh H6547, and bring me H3318 (8689) out of this house H1004:
 For indeed I was stolen away H1589 (8795) out of the land H776 of the Hebrews H5680: and here also have I done H6213 (8804) nothing H3972 that they should put H7760 (8804) me into the dungeon H953.
 When the chief H8269 baker H644 (8802) saw H7200 (8799) that the interpretation H6622 (8804) was good H2896, he said H559 (8799) unto Joseph H3130, I also H637 [was] in my dream H2472, and, behold, [I had] three H7969 white H2751 baskets H5536 on my head H7218:
 And in the uppermost H5945 basket H5536 [there was] of all manner H3978 of bakemeats H4639 H644 (8802) for Pharaoh H6547; and the birds H5775 did eat H398 (8802) them out of the basket H5536 upon H5921 my head H7218.
 And Joseph H3130 answered H6030 (8799) and said H559 (8799), This [is] the interpretation H6623 thereof: The three H7969 baskets H5536 [are] three H7969 days H3117:
 Yet within three H7969 days H3117 shall Pharaoh H6547 lift up H5375 (8799) thy head H7218 from off thee, and shall hang H8518 (8804) thee on a tree H6086; and the birds H5775 shall eat H398 (8804) thy flesh H1320 from off thee.
 And it came to pass the third H7992 day H3117, [which was] Pharaoh’s H6547 birthday H3117 H3205 (8715), that he made H6213 (8799) a feast H4960 unto all his servants H5650: and he lifted up H5375 (8799) the head H7218 of the chief H8269 butler H8248 (8688) and of the chief H8269 baker H644 (8802) among H8432 his servants H5650.
 And he restored H7725 the chief H8269 butler H8248 (8688) unto his butlership H4945 again H7725 (8686); and he gave H5414 (8799) the cup H3563 into Pharaoh’s H6547 hand H3709:
 But he hanged H8518 (8804) the chief H8269 baker H644 (8802): as Joseph H3130 had interpreted H6622 (8804) to them.
 Yet did not the chief H8269 butler H8248 (8688) remember H2142 (8804) Joseph H3130, but forgat H7911 (8799) him.
Young’s Literal Translation
Genesis 40 (YLT)
 And it cometh to pass, after these things-the butler of the king of Egypt and the baker have sinned against their lord, against the king of Egypt;
 and Pharaoh is wroth against his two eunuchs, against the chief of the butlers, and against the chief of the bakers,
 and giveth them in charge in the house of the chief of the executioners, unto the round-house, the place where Joseph is a prisoner,
 and the chief of the executioners chargeth Joseph with them, and he serveth them; and they are days in charge.
 And they dream a dream both of them, each his dream in one night, each according to the interpretation of his dream, the butler and the baker whom the king of Egypt hath, who are prisoners in the round-house.
 And Joseph cometh in unto them in the morning, and seeth them, and lo, they are morose;
 and he asketh Pharaoh’s eunuchs who are with him in charge in the house of his lord, saying, ‘Wherefore are your faces sad to-day?’
 And they say unto him, ‘A dream we have dreamed, and there is no interpreter of it;’ and Joseph saith unto them, ‘Are not interpretations with God? recount, I pray you, to me.’
 And the chief of the butlers recounteth his dream to Joseph, and saith to him, ‘In my dream, then lo, a vine is before me!
 and in the vine are three branches, and it is as it were flourishing; gone up hath its blossom, its clusters have ripened grapes;
 and Pharaoh’s cup is in my hand, and I take the grapes and press them into the cup of Pharaoh, and I give the cup into the hand of Pharaoh.’
 And Joseph saith to him, ‘This is its interpretation: the three branches are three days;
 yet, within three days doth Pharaoh lift up thy head, and hath put thee back on thy station, and thou hast given the cup of Pharaoh into his hand, according to the former custom when thou wast his butler.
 ‘Surely if thou hast remembered me with thee, when it is well with thee, and hast done (I pray thee) kindness with me, and hast made mention of me unto Pharaoh, then hast thou brought me out from this house,
 for I was really stolen from the land of the Hebrews; and here also have I done nothing that they have put me in the pit.’
 And the chief of the bakers seeth that he hath interpreted good, and he saith unto Joseph, ‘I also am in a dream, and lo, three baskets of white bread are on my head,
 and in the uppermost basket are of all kinds of Pharaoh’s food, work of a baker; and the birds are eating them out of the basket, from off my head.’
 And Joseph answereth and saith, ‘This is its interpretation: the three baskets are three days;
 yet, within three days doth Pharaoh lift up thy head from off thee, and hath hanged thee on a tree, and the birds have eaten thy flesh from off thee.’
 And it cometh to pass, on the third day, Pharaoh’s birthday, that he maketh a banquet to all his servants, and lifteth up the head of the chief of the butlers, and the head of the chief of the bakers among his servants,
 and he putteth back the chief of the butlers to his butlership, and he giveth the cup into the hand of Pharaoh;
 and the chief of the bakers he hath hanged, as Joseph hath interpreted to them;
 and the chief of the butlers hath not remembered Joseph, but forgetteth him.