Mishkat al-Masabih
Mishkat al-Masabih 254
عَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ مِمَّا يَلْحَقُ الْمُؤْمِنَ مِنْ عَمَلِهِ وَحَسَنَاتِهِ بَعْدَ مَوْتِهِ عِلْمًا علمه ونشره وَولدا صَالحا تَركه ومصحفا وَرَّثَهُ أَوْ مَسْجِدًا بَنَاهُ أَوْ بَيْتًا لِابْنِ السَّبِيلِ بَنَاهُ أَوْ نَهْرًا أَجْرَاهُ أَوْ صَدَقَةً أخرجهَا من مَاله فِي صِحَّته وحياته يلْحقهُ من بعد مَوته» . رَوَاهُ بن مَاجَه وَالْبَيْهَقِيّ فِي شعب الْإِيمَان
Abū Hurayra reported that the Messenger of God said: ‘Among the deeds and good works whose reward continues to reach a believer after his death are knowledge that he taught and spread; a righteous child whom he left behind; a copy of the Qur’an that he bequeathed; a mosque that he built; a lodging that he built for a wayfarer; a stream that he caused to flow; or charity that he gave from his wealth while he was healthy and alive. Its reward continues to reach him after his death.’ Ibn Mājah transmitted it; al-Bayhaqī also transmitted it in Shuʿab al-Īmān.
Translation notes
The accompanying grading labels this report ḥasan (good).