Hadith 20
حَدَّثَنَا أَبُو الرَّبِيعِ، قَالَ: حَدَّثَنَا إِسْمَاعِيلُ بْنُ جَعْفَرٍ، قَالَ: أَخْبَرَنَا الْعَلاَءُ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللهِ صلى الله عليه وسلم قَالَ: إِذَا مَاتَ الْعَبْدُ انْقَطَعَ عَنْهُ عَمَلُهُ إِلاَّ مِنْ ثَلاَثٍ: صَدَقَةٍ جَارِيَةٍ، أَوْ عِلْمٍ يُنْتَفَعُ بِهِ، أَوْ وَلَدٍ صَالِحٍ يَدْعُو لَهُ.
“the Messenger of Allah (ﷺ) said, "When a person dies, all action is cut off for him with the exception of three things: Sadaqah which continues, knowledge which benefits and a righteous child who makes supplication for him.”
Abu Hurayra (رضي الله عنه)Al-Adab Al-Mufrad 38Adab with Parents