Jacob lived in the land where his father had wandered as a foreigner — the land of Canaan.
This is the history of Jacob. When Joseph was 17 years of age, they brought him down to Egypt, The pharaoh's eunuch Potiphar, the chief cook, bought him.
He put Joseph in charge of his entire house. The Lord's blessing was (present) in the Egyptian's house because of Joseph. The Lord made everything that he did succeed for him.
The Egyptian left everything to Joseph because he noticed that the Lord was with him and that the Lord made everything that he did succeed for him.
Now Joseph was well formed and very handsome. The wife of his master looked up, saw Joseph, loved him, and pleaded with him to lie with her.
But he did not surrender himself. He remembered the Lord and what his father Jacob would read to him from the words of Abraham — that no one is to commit adultery with a woman who has a husband; that there is a death penalty which has been ordained for him in heaven before the most high Lord. The sin will be entered regarding him in the eternal books forever before the Lord.
Joseph remembered what he had said and refused to lie with her.
She pleaded with him for one year and a second, but he refused to listen to her.
She drew him close and held on to him in the house in order to compel him to he with her. She closed the door of the house and held on to him. He left his clothes in her hands, broke the door, and ran away from her to the outside.
When that woman saw that he would not lie with her, she accused him falsely to his master: 'Your Hebrew slave whom you love wanted to force me so that he could lie with me. When I shouted, he ran away, left his clothes in my hands when I grabbed him, and broke the door'.
When the Egyptian saw Joseph's clothes and the broken door, he believed what his wife said. He put Joseph in prison in the place where the prisoners whom the king imprisoned would stay.
While he was there in the prison, the Lord gave Joseph a favorable reception before the chief of the prison guards and and a kind reception before him because he saw that the Lord was with him and that the Lord was making everything that he did succeed for him.
He left everything to him. The chief of the prison guards knew nothing at all about his affairs because Joseph would do everything and the Lord would bring (it) to completion. He remained there for two years.
At that time the pharaoh, the king of Egypt, became angry at two of his eunuchs — the chief butler and the chief baker. He put them in prison, in the house of the chief cook, in the prison where Joseph was held.
The chief of the prison guards appointed Joseph to serve them. So he would serve in his presence.
Both of them — the chief butler and the chief baker — had a dream and told it to Joseph.
Things turned out for them just as he interpreted for them. The pharaoh restored the chief butler to his job, but he hanged the baker as Joseph had interpreted for him.
The chief butler forgot Joseph in prison although he had informed him (about) what would happen to him. He did not remember to tell the pharaoh how Joseph had told him because he forgot.