Jami` at-Tirmidhi, Book 36, Hadith 76 (Tirmidhi 2448)

Anas bin Malik narrated that the Messenger of Allah (S.a.w) said:

"Three follow the deceased, two of them return, and one remains. He is followed by his family, his wealth, and his deeds. So his family and his wealth returns, and his deeds remain."