ספר המדות A Righteous Person / Part I · קנט
Sefer HaMiddot 2170
קנט. הַיִּסּוּרִין שֶׁבְּאֵין עַל הַצַּדִּיקִים. בִּשְׁבִיל כְּדֵי שֶׁלֹּא יְהַרְהֲרוּ הָרְשָׁעִים לְעוֹלָם הַבָּא עַל הַטּוֹב. שֶׁיִּתֵּן הַקָּדוֹשׁ בָּרוּךְ הוּא לַצַּדִּיקִים.
159. The suffering that comes upon the tzaddikim, is so that in the World to Come, the wicked will not question (in their minds) the good that the Holy One Blessed He will be giving the tzaddikim.