The Book Of Jubilees Chapter 39
The generations of Yacob
1, And Yacob dwelt in the land of his father's sojournings in the land of Canaan.
2 These are the generations of Yacob. And Yoseph was seventeen years old when they took him down into the land of Egypt, and Potiphar, an eunuch of Pharaoh, the chief cook bought him.
3 And he set Yoseph over all his house and the blessing of YAHWEH came upon the house of the Egyptian on account of Yoseph, and YAHWEH prospered him in all that he did.
4 And the Egyptian committed everything into the hands of Yoseph; for he saw that YAHWEH was with him, and that YAHWEH prospered him in all that he did.
5 And Yoseph's appearance was comely [and very beautiful was his appearance], and his master's wife lifted up her eyes and saw Yoseph, and she loved him and besought him to lie with her.
6 But he did not surrender his soul, and he remembered YAHWEH and the words which Yacob, his father, used to read from amongst the words of Abraham, that no man should commit fornication with a woman who has a husband; that for him the punishment of death has been ordained in the heavens before the Most High YAHWEH, and the sin will be recorded against him in the eternal books continually before YAHWEH.
7 And Yoseph remembered these words and refused to lie with her.
8 And she besought him for a year, but he refused and would not listen.
9 But she embraced him and held him fast in the house in order to force him to lie with her, and closed the doors of the house and held him fast; but he left his garment in her hands and broke through the door and fled without from her presence.
10 And the woman saw that he would not lie with her, and she calumniated him in the presence of his lord, saying 'Your Hebrew servant, whom you love, sought to force me so that he might lie with me; and it came to pass when I lifted up my voice that he fled and left his garment in my hands when I held him, and he brake through the door.'
11 And the Egyptian saw the garment of Yoseph and the broken door, and heard the words of his wife, and cast Yoseph into prison into the place where the prisoners were kept whom the king imprisoned.
12 And he was there in the prison; and YAHWEH gave Yoseph favour in the sight of the chief of the prison guards and compassion before him, for he saw that YAHWEH was with him, and that YAHWEH made all that he did to prosper.
13 And he committed all things into his hands, and the chief of the prison guards knew of nothing that was with him, for Yoseph did every thing, and YAHWEH perfected it.
14 And he remained there two years. And in those days Pharaoh, king of Egypt was wroth against his two eunuchs, against the chief butler, and against the chief baker, and he put them in ward in the house of the chief cook, in the prison where Yoseph was kept.
15 And the chief of the prison guards appointed Yoseph to serve them; and he served before them.
16 And they both dreamed a dream, the chief butler and the chief baker, and they told it to Yoseph.
17 And as he interpreted to them so it befell them, and Pharaoh restored the chief butler to his office and the (chief) baker he slew, as Yoseph had interpreted to them.
18 But the chief butler forgot Yoseph in the prison, although he had informed him what would befall him, and did not remember to inform Pharaoh how Yoseph had told him, for he forgot.