"And the man of yours whom I shall not cut off from My altar, etc." (1 Samuel 2:33). Rabbi Meir went up to a certain place called Mamla, and he found there men whose heads were black. He said to them: "Tell me, perhaps you are from the family of Eli?" — concerning whom it is written, "And all the increase of your house shall die as men" (1 Samuel 2:33). They said to him: "Rabbi, pray for us." He said to them: "Occupy yourselves with charity, and you will lengthen your days." He read before them this verse: "A crown of glory is the hoary head" (Proverbs 16:31) — where is it found? "In the way of charity it is found" (ibid.).
Rabbi Meir, the House of Eli, and the Crown of Old Age
Midrash Shmuel 8:4
ואיש לא אכרית לך מעם מזבחי וגו' (שמואל א' ב' ל"ג), רבי מאיר על לחדא אתרא דאקרי ממלי, ומצא אותן שחורי הראש, אמר להם תאמרו שמא ממשפחת עלי אתם, והוא שכתוב בו וכל מרבית ביתך ימותו אנשים (שמואל א' ב' ל"ג), אמרו לו רבי התפלל עלינו, אמר להם התעסקו בצדקה ואתם מאריכים ימים, קרא לפניהם הפסוק הזה עטרת תפארת שיבה (משלי ט"ז ל"א) היכן היא מצויה, בדרך צדקה תמצא (שם).