ספר המדות Knowledge of God / Part I · לג
Sefer HaMiddot 559
לג. מִי שֶׁמְּשַׁלְּמִין לוֹ רָעָה תַּחַת טוֹבָה, הַקָּדוֹשׁ־בָּרוּךְ־הוּא מְרַחֵם עָלָיו וְנוֹתֵן לוֹ שֵׂכֶל גָּדוֹל בַּעֲבוֹדַת הַבּוֹרֵא.
33. One who is repaid with evil for the good he did, the Holy One, Blessed is He, has mercy on him and grants him great intelligence in the service of the Creator.