From Abū Hurayrah (R.A), Rasūlullāh
ﷺ Said:
Among the acts and good deeds that will reach
a believer after his death are
“Knowledge which he learned and then spread;
a righteous son whom he leaves behind;
a copy of the Qur’an that he leaves a legacy;
a mosque that he built;
a house that he built for wayfarers;
a canal that he dug;
or charity that he gave during his
lifetime when he was in good health.
These deeds will reach him after his death.”
(Sahih Ibn Majah)