The Talmud introduces the concept of 'afflictions of love' (yissurin shel ahavah) — suffering sent not as punishment but as a vehicle for atoning sin, increasing reward, and purifying the soul. R. Yochanan and other Amoraim discuss when one should accept such suffering and when to pray for its removal.
וְאִם תָּלָה וְלֹא מָצָא — בְּיָדוּעַ שֶׁיִּסּוּרִין שֶׁל אַהֲבָה הֵם, שֶׁנֶּאֱמַר: ״כִּי אֶת אֲשֶׁר יֶאֱהַב ה׳ יוֹכִיחַ״. אָמַר רָבָא, אָמַר רַב סְחוֹרָה, אָמַר רַב הוּנָא: כׇּל שֶׁהַקָּדוֹשׁ בָּרוּךְ הוּא חָפַץ בּוֹ — מְדַכְּאוֹ בְּיִסּוּרִין, שֶׁנֶּאֱמַר: ״וַה׳ חָפֵץ דַּכְּאוֹ הֶחֱלִי״. יָכוֹל אֲפִילּוּ לֹא קִבְּלָם מֵאַהֲבָה? — תַּלְמוּד לוֹמַר: ״אִם תָּשִׂים אָשָׁם נַפְשׁוֹ״, מָה אָשָׁם לְדַעַת, אַף יִסּוּרִין — לְדַעַת. וְאִם קִבְּלָם מַה שְּׂכָרוֹ: ״יִרְאֶה זֶרַע יַאֲרִיךְ יָמִים״. וְלֹא עוֹד אֶלָּא שֶׁתַּלְמוּדוֹ מִתְקַיֵּים בְּיָדוֹ, שֶׁנֶּאֱמַר: ״וְחֵפֶץ ה׳ בְּיָדוֹ יִצְלָח״. קַל וָחוֹמֶר מִשֵּׁן וָעַיִן. מַה שֵּׁן וָעַיִן שֶׁהֵן אֶחָד מֵאֵבָרָיו שֶׁל אָדָם — עֶבֶד יוֹצֵא בָּהֶן לְחֵרוּת, יִסּוּרִין שֶׁמְּמָרְקִין כׇּל גּוּפוֹ שֶׁל אָדָם — עַל אַחַת כַּמָּה וְכַמָּה. וְהַיְינוּ דְּרַבִּי שִׁמְעוֹן בֶּן לָקִישׁ, דְּאָמַר רַבִּי שִׁמְעוֹן בֶּן לָקִישׁ: נֶאֱמַר ״בְּרִית״ בְּמֶלַח, וְנֶאֱמַר ״בְּרִית״ בְּיִסּוּרִין, נֶאֱמַר ״בְּרִית״ בְּמֶלַח, דִּכְתִיב: ״וְלֹא תַשְׁבִּית מֶלַח בְּרִית״ וְנֶאֱמַר ״בְּרִית״ בְּיִסּוּרִין, דִּכְתִיב: ״אֵלֶּה דִבְרֵי הַבְּרִית״, מַה ״בְּרִית״ הָאָמוּר בְּמֶלַח — מֶלַח מְמַתֶּקֶת אֶת הַבָּשָׂר, אַף ״בְּרִית״ הָאָמוּר בְּיִסּוּרִין — יִסּוּרִין מְמָרְקִין כׇּל עֲוֹנוֹתָיו שֶׁל אָדָם. תַּנְיָא, רַבִּי שִׁמְעוֹן בֶּן יוֹחַאי אוֹמֵר: שָׁלֹשׁ מַתָּנוֹת טוֹבוֹת נָתַן הַקָּדוֹשׁ בָּרוּךְ הוּא לְיִשְׂרָאֵל, וְכוּלָּן לֹא נְתָנָן אֶלָּא עַל יְדֵי יִסּוּרִין, אֵלּוּ הֵן: תּוֹרָה וְאֶרֶץ יִשְׂרָאֵל וְהָעוֹלָם הַבָּא.
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.” This is taught through an a fortiori inference from the law concerning the tooth and eye of a slave: The tooth and eye are each a single limb of a person and if his master damages either, the slave thereby obtains his freedom; suffering that cleanses a person’s entire body all the more so that one attains freedom, atonement, from his sins. And that is the statement of Rabbi Shimon ben Lakish, as Rabbi Shimon ben Lakish said: The word covenant is used with regard to salt, and the word covenant is used with regard to afflictions. The word covenant is used with regard to salt, as it is written: “The salt of the covenant with your God should not be excluded from your meal-offering; with all your sacrifices you must offer salt” (Leviticus 2:13). And the word covenant is used with regard to afflictions, as it is written: “These are the words of the covenant” (Deuteronomy 28:69). Just as, in the covenant mentioned with regard to salt, the salt sweetens the taste of the meat and renders it edible, so too in the covenant mentioned with regard to suffering, the suffering cleanses a person’s transgressions, purifying him for a more sublime existence. Additionally, it was taught in a baraita with regard to affliction: Rabbi Shimon ben Yoḥai says: The Holy One, Blessed be He, gave Israel three precious gifts, all of which were given only by means of suffering, which purified Israel so that they may merit to receive them. These gifts are: Torah, Eretz Yisrael, and the World-to-Come.