Genesis 39:21

But Jehovah was with Joseph, and showed kindness unto him, and gave him favor in the sight of the keeper of the prison.