Reference for Berakhot 35:14
אמר ליה ומי ידעי כולי האי והא כתיב (קהלת ט, ה) והמתים אינם יודעים מאומה אמר ליה אם קרית לא שנית אם שנית לא שלשת אם שלשת לא פירשו לך (קהלת ט, ה) כי החיים יודעים שימותו אלו צדיקים שבמיתתן נקראו חיים שנאמר (שמואל ב כג, כ) ובניהו בן יהוידע בן איש חי רב פעלים מקבצאל הוא הכה את שני אריאל מואב והוא ירד והכה את הארי בתוך הבור ביום השלג
He asked him, "Do they know all that ; for lo, it is written, 'The dead know not anything' (Eccles. ix. 5)?" He answered, "If thou hast read [this verse], thou hast not read it a second time ; if a second time, then not a third time ; and if a third time, its meaning has not been explained to thee. 'For the living know that they shall die' (ibid.) — this refers to the righteous who are called living even in their death ; as it is said, 'And Benaiah the son of Jehoiada, the son of a living man of Kabzeel, who had done mighty deeds, he smote the two altar-hearths of Moab ; he went down also and slew a lion in the midst of a pit in time of snow' (II Sam. xxiii. 20).