Genesis 39:3-5

39:3 His master observed that the Lord was with him and that the Lord made everything he was doing successful. 39:4 So Joseph found favor in his sight and became his personal attendant. Potiphar appointed Joseph overseer of his household and put him in charge of everything he owned. 39:5 From the time Potiphar appointed him over his household and over all that he owned, the Lord blessed the Egyptian’s household for Joseph’s sake. The blessing of the Lord was on everything that he had, both in his house and in his fields.

Genesis 39:21

39:21 But the Lord was with Joseph and showed him kindness. He granted him favor in the sight of the prison warden.