Joseph resists the advances of Potiphar’s wife, is falsely accused, and is cast into prison.

Genesis 39:7–20

7 And it came to pass after these things, that his master’s wife cast her eyes upon Joseph; and she said, Lie with me.
8 But he refused, and said unto his master’s wife, Behold, my master wotteth not what is with me in the house, and he hath committed all that he hath to my hand;
9 There is none greater in this house than I; neither hath he kept back any thing from me but thee, because thou art his wife: how then can I do this great wickedness, and sin against God?
10 And it came to pass, as she spake to Joseph day by day, that he hearkened not unto her, to lie by her, or to be with her.
11 And it came to pass about this time, that Joseph went into the house to do his business; and there was none of the men of the house there within.
12 And she caught him by his garment, saying, Lie with me: and he left his garment in her hand, and fled, and got him out.
13 And it came to pass, when she saw that he had left his garment in her hand, and was fled forth,
14 That she called unto the men of her house, and spake unto them, saying, See, he hath brought in an Hebrew unto us to mock us; he came in unto me to lie with me, and I cried with a loud voice:
15 And it came to pass, when he heard that I lifted up my voice and cried, that he left his garment with me, and fled, and got him out.
16 And she laid up his garment by her, until his lord came home.
17 And she spake unto him according to these words, saying, The Hebrew servant, which thou hast brought unto us, came in unto me to mock me:
18 And it came to pass, as I lifted up my voice and cried, that he left his garment with me, and fled out.
19 And it came to pass, when his master heard the words of his wife, which she spake unto him, saying, After this manner did thy servant to me; that his wrath was kindled.
20 And Joseph’s master took him, and put him into the prison, a place where the king’s prisoners were bound: and he was there in the prison.

President Spencer W. Kimball wrote:

“One of the most inspiring of the Old Testament stories is the experience of . . . Joseph—a youth who set a great example to young and old. He stood tall and stalwart as he resisted his evil temptress. Exerting the wiles of a wicked, voluptuous woman, displaying all her advantages of high station, beauty, and political power, she did everything she could to attract the handsome young leader. When all else failed she attempted force and intimidation and blackmail. But Joseph stood his ground. He refused to yield to her pleadings. Her clothing, or lack of it, her perfumes, her sexy advances, her pleadings—all these bombarded a clean young man willing to suffer any penalty in order to keep his virtue. When all her womanly wiles failed, and he attempted to escape from her, she held to his clothes and tore them off his body. With lies of deceit she reported the incident, reversing the guilt to him. Joseph was thrown into prison to suffer unjustly for the very crime he had resisted to the end.”

(The Miracle of Forgiveness [1969], 70–71.)