AHMAD 22247:
from Abū Umāmah al-Bāhilī —
[Machine] From the Messenger of Allah ﷺ , he said, "There are four people whose rewards continue after death: a person who stays on the frontier in the cause of Allah, a person who performs an action and its reward continues to be given to him, a person who gives a charity and its reward continues to be given to him, and a person who leaves behind a righteous child who supplicates for him."
أحمد ٢٢٢٤٧:
عن ابو امامه الباهلي —
عَنْ رَسُولِ اللهِ ﷺ أَنَّهُ قَالَ أَرْبَعَةٌ تَجْرِي عَلَيْهِمْ أُجُورُهُمْ بَعْدَ الْمَوْتِ مُرَابِطٌ فِي سَبِيلِ اللهِ وَمَنْ عَمِلَ عَمَلًا أُجْرِيَ لَهُ مِثْلُ مَا عَمِلَ وَرَجُلٌ تَصَدَّقَ بِصَدَقَةٍ فَأَجْرُهَا لَهُ مَا جَرَتْ وَرَجُلٌ تَرَكَ وَلَدًا صَالِحًا فَهُوَ يَدْعُو لَهُ
hadithunlocked.com