Mishkat al-Masabih
Mishkat al-Masabih 203
Arabic hadith text
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " إِذَا مَاتَ الْإِنْسَانُ انْقَطَعَ عَمَلُهُ إِلَّا مِنْ ثَلَاثَةِ أَشْيَاءَ: صَدَقَةٍ جَارِيَةٍ أوعلم ينْتَفع بِهِ أوولد صَالح يَدْعُو لَهُ) رَوَاهُ مُسلم
Translation
Abu Hurayra reported that the Messenger of God said: ‘When a person dies, his deeds come to an end except for three: ongoing charity, knowledge from which people continue to benefit, or a righteous child who prays for him.’ Muslim transmitted it.