Genesis 39:13-23 NIV
When she saw that he had left his cloak in her hand and had run out of the house, she called her household servants. “Look,” she said to them, “this Hebrew has been brought to us to make sport of us! He came in here to sleep with me, but I screamed. When he heard me scream for help, he left his cloak beside me and ran out of the house.”
She kept his cloak beside her until his master came home. Then she told him this story: “That Hebrew slave you brought us came to me to make sport of me. But as soon as I screamed for help, he left his cloak beside me and ran out of the house.”
When his master heard the story his wife told him, saying, “This is how your slave treated me,” he burned with anger. Joseph’s master took him and put him in prison, the place where the king’s prisoners were confined.
But while Joseph was there in the prison, the LORD was with him; he showed him kindness and granted him favor in the eyes of the prison warden. So the warden put Joseph in charge of all those held in the prison, and he was made responsible for all that was done there. The warden paid no attention to anything under Joseph’s care, because the LORD was with Joseph and gave him success in whatever he did.
NIV: New International Version