Genesis 39:4 And Joseph found grace in his sight, and he served him: and he made him overseer over his house, and all that he had he put into his hand.
[Patriarchs & Prophets pp 214] Arriving in Egypt, Joseph was sold to Potiphar, captain of the king's guard, in whose service he remained for ten years. He was here exposed to temptations of no ordinary character. He was in the midst of idolatry. The worship of false gods was surrounded by all the pomp of royalty, supported by the wealth and culture of the most highly civilized nation then in existence. Yet Joseph preserved his simplicity and his fidelity to God.
The sights and sounds of vice were all about him, but he was as one who saw and heard not. His thoughts were not permitted to linger upon forbidden subjects. The desire to gain the favor of the Egyptians could not cause him to conceal his principles. Had he attempted to do this, he would have been overcome by temptation; but he was not ashamed of the religion of his fathers, and he made no effort to hide the fact that he was a worshiper of Jehovah.
“And the Lord was with Joseph, and he was a prosperous man.... And his master saw that the Lord was with him, and that the Lord made all that he did to prosper in his hand.” Potiphar's confidence in Joseph increased daily, and he finally promoted him to be his steward, with full control over all his possessions. “And he left all that he had in Joseph's hand; and he knew not aught he had, save the bread which he did eat.”
Genesis 39:5 And it came to pass from the time that he had made him overseer in his house, and over all that he had, that the Lord blessed the Egyptian's house for Joseph's sake; and the blessing of the Lord was upon all that he had in the house, and in the field.
May God add His blessing to the study of His word. “Good night” and God bless!