ספר המדות, Mitigating Judgment / Part II Mitigating Judgment / Part II · ג
Sefer HaMiddot 719
ג. מִי שֶׁמְּקַבֵּל יִסּוּרִים בִּשְׁבִיל לְהָקֵל יִסּוּרִים מֵעַל יִשְׂרָאֵל, עַל־יְדֵי זֶה יִזְכֶּה לְרוּחַ־הַקּדֶשׁ.
3. One who accepts suffering in order to lessen the suffering of the Jewish people, through this he will merit Divine Inspiration.