It was narrated that ‘Abdullah bin Abi Bakr (RA) said: “I heard Anas bin Malik (RA) say: The Messenger of Allah (peace be upon him) said: ‘The dead person is followed by three: His family, his wealth and his deeds. Then two of them come back: His family and his wealth, and there remain only his deeds.”‘
(Sunan an-Nasa’i, Book 21, Hadith 121)