B'resheet 39:1 Now Yosef had been taken down to Egypt; and Potifar, an Egyptian officer of Pharaoh, the captain of the bodyguard, bought him from the Yishma'elim (Ishmaelites), who had taken him down there.
Egypt is symbolic of sin and death. Yosef is again a "type" that points to the real deal or the coming one our "anointed" Yeshua. This is symbolic of Yeshua at the time of His death. Yosef was persecuted for doing the right thing. Sometimes when we follow the will of the Father in our lives there will arise persecution.
B'resheet 39:2-5 And the L-RD was with Yosef, so he became a successful man. And he was in the house of his master, the Egyptian. Now his master saw that the L-RD was with him and how the L-RD caused all that he did to prosper in his hand. So Yosef found favor in his sight, and became his personal servant; and he made him overseer over his house, and all that he owned he put in his charge. And it came about that from the time he made him overseer in his house, and over all that he owned, the L-RD blessed the Egyptian's house on account of Yosef; thus the L-rd's blessing was upon all that he owned, in the house and in the field.
And the L-RD was with Yosef - Even though Yosef was sold into slavery, Ha Shem, was with him. He had a plan and purpose for his life.
Tehillim (Psalms) 56:4 In G-d, whose word I praise, In G-d I have put my trust; I shall not be afraid. What can mere man do to me?
B'resheet 39:6 So he left everything he owned in Yosef's charge; and with him there he did not concern himself with anything except the food which he ate. Now Yosef was handsome in form and appearance.
This is in contrast to the appearance of our Messiah.
Yesha'yahu (Isaiah) 53:1-2 Who has believed our message? And to whom has the arm of the L-RD been revealed? For He grew up before Him like a tender shoot, And like a root out of parched ground; He has no stately form or majesty That we should look upon Him, Nor appearance that we should be attracted to Him. NAS
B'resheet 39:7-9 And it came about after these events that his master's wife looked with desire at Yosef, and she said, "Lie with me." But he refused and said to his master's wife, "Look, with me here, my master does not concern himself with anything in the house, and he has put all that he owns in my charge. There is no one greater in this house than I, and he has withheld nothing from me except you, because you are his wife. How then could I do this great evil, and sin against G-d?"
Yosef flees temptation and states it would be a sin against G-d.
The corresponding letter to this chapter is Peh-mouth; closed and open; speech and silence.
B'resheet 39:10-14 And it came about as she spoke to Yosef day after day, that he did not listen to her to lie beside her, or be with her. Now it happened one day that he went into the house to do his work, and none of the men of the household was there inside. And she caught him by his garment, saying, "Lie with me!" And he left his garment in her hand and fled, and went outside. When she saw that he had left his garment in her hand, and had fled outside, she called to the men of her household, and said to them, "See, he has brought in a Hebrew to us to make sport of us; he came in to me to lie with me, and I yelled out loudly.
She speaks lies to discredit Yosef. Leaders spoke the lies also to discredit Yeshua.
Luke 23:1-3 Then the whole body of them arose and brought Him before Pilate. And they began to accuse Him, saying, "We found this man misleading our nation and forbidding to pay taxes to Caesar, and saying that He Himself is Messiah (Christ), a King." NAS
He never forbade anybody from paying taxes to Caesar.
B'resheet 39:15 And it came about when he heard that I raised my voice and screamed, that he left his garment beside me and fled, and went outside."
Yosef's garment was taken. Yeshua's garments were taken.
Tehillim (Psalms) 22:18 They divide my garments among them, and for my clothing they cast lots.
Luke 23:34-35 "Father, forgive them; for they do not know what they are doing." And they cast lots, dividing up His garments among themselves.
Back to Yosef:
B'resheet 39:16-18 So she left his garment beside her until his master came home. Then she spoke to him with these words, "The Hebrew slave, whom you brought to us, came in to me to make sport of me; and it happened as I raised my voice and screamed, that he left his garment beside me and fled outside. "
Again she speaks lies. The leaders and others persisted to speak lies also.
Luke 23:4-5 And Pilate said to the chief priests and the multitudes, "I find no guilt in this man." But they kept on insisting, saying, "He stirs up the people, teaching all over Judea, starting from Galilee, even as far as this place."
Luke 23:13-15 And Pilate summoned the chief priests and the rulers and the people, and said to them, "You brought this man to me as one who incites the people to rebellion, and behold, having examined Him before you, I have found no guilt in this man regarding the charges which you make against Him. NAS