Genesis 39:21 Philosophy

וַיְהִ֤י יְהוָה֙ אֶת־יוֹסֵ֔ף וַיֵּ֥ט אֵלָ֖יו חָ֑סֶד וַיִּתֵּ֣ן חִנּ֔וֹ בְּעֵינֵ֖י שַׂ֥ר בֵּית־הַסֹּֽהַר׃

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

Read Jewish philosophical commentary on Genesis 39:21: and classical philosophical sources.