رِيَاضُ الصَّالِحِينَ
Riyad as-Salihin 1383
The Book of Knowledge
Virtues of Knowledge which is Learnt and Taught for the sake of Allah
وَعَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : إِذَا مات ابْن آدم انْقَطَعَ عَمَلُهُ إِلاَّ مِنْ ثَلاَثٍ: صَدَقَةٌ جَارِيَةٌ ،أَوْ عِلْمٍ يُنْتَفَعُ بِهِ، أَوْ وَلَدٍ صَالَحٍ يَدْعُو لَهُ ((رَوَاهُ مُسْلِم)).
Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (ﷺ) said, "When a man dies, his deeds come to an end except for three things: Sadaqah Jariyah (ceaseless charity); a knowledge which is beneficial, or a virtuous descendant who prays for him (for the deceased)." [Muslim].
Riyad as-Salihin, 1383