But the Lord was with Joseph and extended kindness to him, and gave him favor in the sight of the chief jailer.