Genesis 39:6-12 NIV
So Potiphar left everything he had in Joseph’s care; with Joseph in charge, he did not concern himself with anything except the food he ate.
Now Joseph was well-built and handsome, and after a while his master’s wife took notice of Joseph and said, “Come to bed with me!”
But he refused. “With me in charge,” he told her, “my master does not concern himself with anything in the house; everything he owns he has entrusted to my care. No one is greater in this house than I am. My master has withheld nothing from me except you, because you are his wife. How then could I do such a wicked thing and sin against God?” And though she spoke to Joseph day after day, he refused to go to bed with her or even be with her.
One day he went into the house to attend to his duties, and none of the household servants was inside. She caught him by his cloak and said, “Come to bed with me!” But he left his cloak in her hand and ran out of the house.
NIV: New International Version