Abu Umamah reported: The Messenger of Allah, peace and blessings be upon him, said, “Four people continue to be rewarded after death: a soldier guarding the frontier in the way of Allah, one teaching a good deed to others is rewarded like them as they act upon it, a man offering charity is rewarded for it as it is ongoing, and a man leaving behind a righteous child who supplicates for him.”
Source: Musnad Aḥmad 22247
Grade: Sahih li ghayrihi (authentic due to external evidence) according to Al-Arna’ut
عَنْ أَبِي أُمَامَةَ الْبَاهِلِيِّ عَنْ رَسُولِ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ أَنَّهُ قَالَ أَرْبَعَةٌ تَجْرِي عَلَيْهِمْ أُجُورُهُمْ بَعْدَ الْمَوْتِ مُرَابِطٌ فِي سَبِيلِ اللهِ ومَنْ علَّمَ عَمَلًا أُجْرِيَ لَهُ مِثْلُ مَا عَمِلَ وَرَجُلٌ تَصَدَّقَ بِصَدَقَةٍ فَأَجْرُهَا لَهُ مَا جَرَتْ وَرَجُلٌ تَرَكَ وَلَدًا صَالِحًا فَهُوَ يَدْعُو لَهُ
22247 مسند أحمد بن حنبل
36/585 المحدث شعيب الأرناؤوط خلاصة حكم المحدث صحيح لغيره في تخريج المسند لشعيب