וַיְהִ֤י יְהוָה֙ אֶת־יוֹסֵ֔ף וַיֵּ֥ט אֵלָ֖יו חָ֑סֶד וַיִּתֵּ֣ן חִנּ֔וֹ בְּעֵינֵ֖י שַׂ֥ר בֵּית־הַסֹּֽהַר׃
But the LORD was with Joseph, and showed kindness unto him, and gave him favour in the sight of the keeper of the prison.
Targum Jonathan on Genesis
And the Word of the Lord was Joseph's Helper, and extended mercy to him, and gave him favour in the eyes of the captain of the prison.