Sahih al-Bukhari 6514
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
يَتْبَعُ الْمَيِّتَ ثَلاَثَةٌ، فَيَرْجِعُ اثْنَانِ وَيَبْقَى مَعَهُ وَاحِدٌ، يَتْبَعُهُ أَهْلُهُ وَمَالُهُ وَعَمَلُهُ، فَيَرْجِعُ أَهْلُهُ وَمَالُهُ، وَيَبْقَى عَمَلُهُ "
Narrated Anas bin Malik:
Allah's Messenger (ﷺ) said, "When carried to his grave, a dead person is followed by three, two of which return (after his burial) and one remains with him: his relative, his property, and his deeds follow him; relatives and his property go back while his deeds remain with him."
Full reference and source
Sahih al-Bukhari 6514 In-book : Book 81, Hadith 103 USC-MSA web (English) : Vol. 8, Book 76, Hadith 521 (deprecated)
View source on Sunnah.com (opens in a new tab)