Sunan an-Nasa'i, Volume 3, Book 21, Hadith 1939 (DarusSalam) ⓘ
It was narrated that 'Abdullah bin Abi Bakr said: "I heard Anas bin Malik say: The Messenger of Allah 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."'
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي بَكْرٍ، قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " يَتْبَعُ الْمَيِّتَ ثَلاَثَةٌ أَهْلُهُ وَمَالُهُ وَعَمَلُهُ فَيَرْجِعُ اثْنَانِ أَهْلُهُ وَمَالُهُ وَيَبْقَى وَاحِدٌ عَمَلُهُ " .
also referenced under: Hadith 1937 (Reference) & Book 21, Hadith 121 (In-Book)