EXTRA · Parashas Vayeishev · Passuk 39:21 · not a Torah Temimah citation on this passuk
GOD was with Joseph—extending kindness to him and disposing the chief jailer favorably toward him.
Classical source (EXTRA side-ring): Bereshis Rabbah 87:10.
Sefaria — Bereshis Rabbah 87:10
English: “And He extended kindness to him” — kindness below corresponding to kindness above.
Derash on the verse (Bereshis Rabbah) — not a formal named middah of the 13. Human chesed is aligned with divine chesed.
When Heaven extends chesed to Yosef, the earthly keeper of the prison is moved to the same.