Man has three friends on whose company he relies. First, wealth — which goes with him only while good fortune lasts. Second, his relatives — they go only as far as the grave and leave him there. The third friend, his good deeds, go with him beyond the grave.
The Talmud (AD 200-500) Collection of Jewish rabbinical writings
(Attributed)
I could not find an actual citation for this quotation, but the story (the explanation of a parable, in which a man is summoned before a king, and while his dearest friend will not go with him, and his second best friend will only go to the palace gates, his least-loved friend goes with him before the throne) shows up with different translation in multiple sources:
- The Talmud: Selections, Part 5 "Civil and Criminal Laws -- the Holy Days" - "The Day of Atonement" [tr. Polano (1876)].
- Isaac Aboav, Lamp of Light [Menorat Hamoar] [14th C], Fifth Lamp "Teshuvah," Sec. 2 [ch. 3] in Leonard Kravitz and Kerry Olitzky, <i>Journey of the Soul: Traditional Sources on the</i> Teshuvah (1995).
- Talmudic and Other Legends [tr., comp. Weiss (1888 ed.), "Man's Three Friends" (Pirke R. Eliezer).