Keep Calm And Chesed On

Due to improprieties committed by the sons of Eli, a Kohein Gadol, Hashem proclaimed a curse on his descendants that they would die young. Unless some special exception was made, the descendants wouldn’t live past 20. The Talmud relates that two great sages, Abaye and Rabbah, descended from Eli. Rabbah lived until 40. Abaye lived until 60. The Gemara explains that Rabbah learned and taught Torah; therefore, 20 years were added to his life. Abaye performed acts of kindness as well as learning and teaching Torah; therefore, 40 years were added to his life (Yevamos 105a).
Rabbeinu Elchanan, cited in Tosfos, points out that this seems to contradict a passage in Sanhedrin (98b). The Gemara there says that Rabbah was afraid of the pain and travails that will herald the arrival of Mashiach. Abaye asked Rabbah, “Why are you afraid? Rebbe Eliezer says that one who wishes to be spared the pain that will precede Mashiach should busy himself in Torah and chesed. And you, Rebbe, have both!” Rabbah answered that he was afraid that perhaps sins he committed would make him susceptible to those pains.