The Talmud presents the concept of 'yissurin shel ahavah' — afflictions of love — as suffering sent by God to beloved individuals to increase their reward in the World to Come. It also discusses examining one's deeds when suffering befalls, and the powerful atonement that suffering provides.
אָמַר רָבָא, וְאִיתֵּימָא רַב חִסְדָּא: אִם רוֹאֶה אָדָם שֶׁיִּסּוּרִין בָּאִין עָלָיו — יְפַשְׁפֵּשׁ בְּמַעֲשָׂיו, שֶׁנֶּאֱמַר: ״נַחְפְּשָׂה דְרָכֵינוּ וְנַחְקֹרָה וְנָשׁוּבָה עַד ה׳״. פִּשְׁפֵּשׁ וְלֹא מָצָא — יִתְלֶה בְּבִטּוּל תּוֹרָה, שֶׁנֶּאֱמַר: ״אַשְׁרֵי הַגֶּבֶר אֲשֶׁר תְּיַסְּרֶנּוּ יָּהּ וּמִתּוֹרָתְךָ תְלַמְּדֶנּוּ״. וְאִם תָּלָה וְלֹא מָצָא — בְּיָדוּעַ שֶׁיִּסּוּרִין שֶׁל אַהֲבָה הֵם, שֶׁנֶּאֱמַר: ״כִּי אֶת אֲשֶׁר יֶאֱהַב ה׳ יוֹכִיחַ״. אָמַר רָבָא, אָמַר רַב סְחוֹרָה, אָמַר רַב הוּנָא: כׇּל שֶׁהַקָּדוֹשׁ בָּרוּךְ הוּא חָפַץ בּוֹ — מְדַכְּאוֹ בְּיִסּוּרִין, שֶׁנֶּאֱמַר: ״וַה׳ חָפֵץ דַּכְּאוֹ הֶחֱלִי״. יָכוֹל אֲפִילּוּ לֹא קִבְּלָם מֵאַהֲבָה? — תַּלְמוּד לוֹמַר: ״אִם תָּשִׂים אָשָׁם נַפְשׁוֹ״, מָה אָשָׁם לְדַעַת, אַף יִסּוּרִין — לְדַעַת. וְאִם קִבְּלָם מַה שְּׂכָרוֹ: ״יִרְאֶה זֶרַע יַאֲרִיךְ יָמִים״. וְלֹא עוֹד אֶלָּא שֶׁתַּלְמוּדוֹ מִתְקַיֵּים בְּיָדוֹ, שֶׁנֶּאֱמַר: ״וְחֵפֶץ ה׳ בְּיָדוֹ יִצְלָח״.
Previously, the Gemara discussed suffering that results from one’s transgressions. The Gemara shifts the focus and discusses suffering that does not result from one’s transgressions and the suffering of the righteous. Rava, and some say Rav Ḥisda, said: If a person sees that suffering has befallen him, he should examine his actions. Generally, suffering comes about as punishment for one’s transgressions, as it is stated: “We will search and examine our ways, and return to God” (Lamentations 3:40). If he examined his ways and found no transgression for which that suffering is appropriate, he may attribute his suffering to dereliction in the study of Torah. God punishes an individual for dereliction in the study of Torah in order to emphasize the gravity of the issue, as it is stated: “Happy is the man whom You punish, Lord, and teach out of Your law” (Psalms 94:12). This verse teaches us that his suffering will cause him to return to Your law. And if he did attribute his suffering to dereliction in the study of Torah, and did not find this to be so, he may be confident that these are afflictions of love, as it is stated: “For whom the Lord loves, He rebukes, as does a father the son in whom he delights” (Proverbs 3:12). So too, Rava said that Rav Seḥora said that Rav Huna said: Anyone in whom the Holy One, Blessed be He, delights, He oppresses him with suffering, as it is stated: “Yet in whom the Lord delights, He oppresses him with disease; to see if his soul would offer itself in guilt, that he might see his children, lengthen his days, and that the desire of the Lord might prosper by his hand” (Isaiah 53:10). This verse illustrates that in whomever God delights, he afflicts with illness. I might have thought that God delights in him even if he does not accept his suffering with love. Therefore the verse teaches: “If his soul would offer itself in guilt.” Just as a guilt-offering is brought knowingly, as it is one of the sacrifices offered willingly, without coercion, so too his suffering must be accepted knowingly. And if one accepts that suffering with love, what is his reward? As the second part of the verse states: “That he might see his children, lengthen his days.” Moreover, in addition to these earthly rewards, his Torah study will endure and his Torah study will be successful, as it is stated: “The purpose of the Lord,” the Torah, the revelation of God’s will, “might prosper by his hand.”