His master saw that the Lord was with him and that the Lord caused all he did to succeed (Genesis 39:3).
The Lord was with Joseph and showed him steadfast love and gave him favor in the sight of the keeper of the prison (Genesis 39:21).
Consider the blessings of walking with God.