Genesis 39:21 But the LORD was with Joseph, and showed him mercy, and gave him favor in the sight of the keeper of the prison. (KJV Authorized version 1611)