3984—(“Four deeds of the living continue to benefit the dead:
A man who leaves behind righteous offspring who supplicate, and their supplication reaches him.
A man who gives an ongoing charity; its reward continues for him after his death for as long as it endures.
A man who teaches knowledge that is acted upon after him; he receives the like of the reward of whoever acts upon it, without anything being diminished from the reward for his deeds.
And a man stationed in frontier defense: his deeds continue to increase for him until the Day of Reckoning.”)
Ibn Abi al-Dunya recorded it in The Book of Dependents (2/613–431)—and the wording is his—and al-Tabarani in The Great Dictionary (6/328/6181), through Ishaq ibn Abd Allah, from Makhul, from Shurahbil ibn al-Simt, from Salman, who said: I heard the Messenger of Allah—peace and blessings be upon him—say: … and he mentioned it.
Then Ibn Abi al-Dunya narrated it under number (432), with the same chain: from Ishaq ibn Abd Allah, from Aban ibn Salih, from Amir ibn Sa‘d, from Abdullah ibn Mas‘ud, from the Prophet—peace and blessings be upon him—similarly.
I say: Its narrators are trustworthy, apart from Ishaq ibn Abd Allah—who is Ibn Abi Farwah—for he is weak and abandoned.
However, the hadith is good on account of corroborating evidence, because it has come separately in a number of hadiths, the most authentic and best known of which is:
“When a person dies, his deeds cease except for three …” the hadith.
Muslim and others narrated it.