Genesis 39:17-20

39:17 This is what she said to him: “That Hebrew slave you brought to us tried to humiliate me, 39:18 but when I raised my voice and screamed, he left his outer garment and ran outside.”

39:19 When his master heard his wife say, “This is the way your slave treated me,” he became furious. 39:20 Joseph’s master took him and threw him into the prison, the place where the king’s prisoners were confined. So he was there in the prison.