The Book Pertaining to Piety and Softening of Hearts (Kitab Al-Zuhd wa Al-Raqa'iq)
Muslim :: Book 42 : Hadith 7064
Anas b. Malik reported Allah's Messenger (way peace be upon him) as saying: Three things follow the bier of a dead man. two of them come back and one is left with him: the members of his family. wealth and his-good deeds. The members of his family and wealth come back and the deeds alone are left with him.