إِنَّ مِمَّا يَلْحَقُ الْمُؤْمِنَ مِنْ عَمَلِهِ وَحَسَنَاتِهِ بَعْدَ مَوْتِهِ عِلْمًا عَلَّمَهُ وَنَشَرَهُ، وَوَلَدًا صَالِحًا تَرَكَهُ، أَوْ مُصْحَفًا وَرَّثَهُ، أَوْ مَسْجِدًا بَنَاهُ، أَوْ بَيْتًا لِابْنِ السَّبِيلِ بَنَاهُ، أَوْ نَهْرًا أَجْرَاهُ، أَوْ صَدَقَةً أَخْرَجَهَا مِنْ مَالِهِ فِي صِحَّتِهِ وَحَيَاتِهِ، تَلْحَقُهُ مِنْ بَعْدِ مَوْتِهِ
Among a believer’s good deeds that continue to reach him after death are knowledge he taught and spread, a righteous child he left, a copy of the Qur’an he passed on, a mosque he built, a place for a traveler he built, a watercourse he made flow, or charity he gave from his wealth during his life and health. They reach him after his death.
Source: ابن ماجه
The narration names good works whose benefits may continue after a person dies: teaching and spreading knowledge, righteous children, passing on a Qur’an copy, building a mosque, accommodation for travelers, providing water, and meaningful charity given during life.
يَلْحَقُ is a present-tense verb meaning “reaches.” بَعْدَ مَوْتِهِ means “after his death,” showing the continuation of benefit.
Simply naming an act is not sufficient; its actual benefit, sound intention, and lawful execution are crucial to understanding the example.