Genesis 39:1-10 ESV
Now Joseph had been brought down to Egypt, and Potiphar, an officer of Pharaoh, the captain of the guard, an Egyptian, had bought him from the Ishmaelites who had brought him down there. The LORD was with Joseph, and he became a successful man, and he was in the house of his Egyptian master. His master saw that the LORD was with him and that the LORD caused all that he did to succeed in his hands. So Joseph found favor in his sight and attended him, and he made him overseer of his house and put him in charge of all that he had. From the time that he made him overseer in his house and over all that he had, the LORD blessed the Egyptian’s house for Joseph’s sake; the blessing of the LORD was on all that he had, in house and field. So he left all that he had in Joseph’s charge, and because of him he had no concern about anything but the food he ate.
Now Joseph was handsome in form and appearance. And after a time his master’s wife cast her eyes on Joseph and said, “Lie with me.” But he refused and said to his master’s wife, “Behold, because of me my master has no concern about anything in the house, and he has put everything that he has in my charge. He is not greater in this house than I am, nor has he kept back anything from me except you, because you are his wife. How then can I do this great wickedness and sin against God?” And as she spoke to Joseph day after day, he would not listen to her, to lie beside her or to be with her.
ESV: English Standard Version 2016