Riyad as-Salihin

Riyad as-Salihin 1383

Virtues of Knowledge which is Learnt and Taught for the sake of Allah
Arabic hadith text
وعنه قال‏:‏ قال رسول الله صلى الله عليه وسلم ‏:‏ ‏"‏إذا مات ابن آدم انقطع عمله إلا من ثلاث‏:‏ صدقة جارية ،أو علم ينتفع به، أو ولد صالح يدعو له‏"‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏
Translation
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].

Commentary

Overview & Central Theme

This profound hadith, recorded by Imam Muslim in Riyad as-Salihin (Book of Knowledge, Hadith 1383), encapsulates the Islamic theology of the afterlife and the continuity of human agency. The Prophet ﷺ declares that upon death, the door of earning deeds (amal) closes permanently—no new actions can be recorded—except for three perpetual streams that transcend the grave. These are not merely exceptions but divine mercies that transform a person's legacy into an ongoing act of worship. The central theme is the intersection of faith, charity, knowledge, and progeny: what a person leaves behind in this world becomes their lifeline to reward in the Hereafter. It teaches that true success is not measured by transient wealth or fame, but by the enduring impact of one's good deeds on humanity and the preservation of beneficial knowledge that guides others toward truth.

Context & Linguistic Insights

The hadith was narrated on multiple occasions, often in contexts where companions asked about ways to benefit the deceased or sought to maximize their good deeds. The Arabic term Sadaqah Jariyah combines sadaqah (charity given sincerely for Allah) with jariyah (flowing, continuous), indicating an endowment whose benefit persists, such as a well, a mosque, or a waqf (Islamic trust). Ilm yuntafa'u bihi (beneficial knowledge) refers to knowledge that is taught, written, or practiced by others, continuing to yield reward for its originator. Walad salih (righteous child) is specified as yad'u lahu (who prays for him), emphasizing that the child's supplication is a gift from Allah, not a right earned by the parent. The Prophet ﷺ used the generic "man" (son of Adam) to include both genders, as the term is inclusive in Arabic. The linguistic precision highlights that these three exceptions are not earned posthumously but are the fruits of seeds planted during one's lifetime—hence, they are extensions of one's own deeds, not new ones.

Key Scholarly Insights & Legal Benefits

  • The juristic principle of istihbab (recommendation) for establishing perpetual charities (awqaf) is derived from this hadith, making it a foundational text for Islamic endowment law.
  • Beneficial knowledge includes teaching, authoring books, and establishing educational institutions; scholars emphasize that even a single hadith taught or a good deed taught by example continues to benefit the deceased, provided the intention was sincere.
  • The hadith establishes that a righteous child's supplication reaches the deceased parent, affirming the doctrine of benefit of dua for the dead, a matter of consensus (ijma) among Ahl al-Sunnah.
  • It implicitly encourages parents to raise righteous children as a form of ongoing charity, linking family ethics with eschatological reward.
Imam An-Nawawi commented: "The Prophet ﷺ specified these three because they are the most common means of continued reward; however, the underlying principle is that any deed whose benefit persists after death—such as a beneficial book or a tree planted—is included in the meaning of Sadaqah Jariyah. The mention of a righteous child is a specific example of a broader category, as the child's dua is a form of charity from the child to the parent."

Daily Life & Spiritual Application

This hadith calls every believer to live with an eye on legacy. Practically, one should: (1) invest in sustainable charitable projects—digging wells, funding scholarships, or establishing a waqf, no matter how small, with the intention of it benefitting others indefinitely; (2) share knowledge sincerely—teach a verse, write a beneficial post, mentor a student, or support educational causes, ensuring the knowledge is authentic and actionable; (3) nurture children with taqwa and teach them to pray for their parents, not as a duty but as a loving act of faith. Spiritually, it reminds us that death is not an end but a transition; what we do today echoes in eternity. It also instills hope—even if one has sinned, the door of redemption remains open through these three acts. Daily, one can review: "What am I leaving behind?"—a question that transforms mundane choices into acts of worship, urging us to prioritize what outlasts us over what perishes with us. May Allah grant us beneficial knowledge, righteous offspring, and perpetual charities. Ameen.