Sunan al-Darimi 577
أَخْبَرَنَا مُحَمَّدُ بْنُ الصَّلْتِ، حَدَّثَنَا مَنْصُورُ بْنُ أَبِي الْأَسْوَدِ، عَنْ أَبِي إِسْحَاقَ الشَّيْبَانِيِّ، عَنْ حَمَّادٍ، عَنْ إِبْرَاهِيمَ، قَالَ: " يَتْبَعُ الرَّجُلَ بَعْدَ مَوْتِهِ ثَلَاثُ خِلَالٍ: صَدَقَةٌ تَجْرِي بَعْدَهُ، وَصَلَاةُ وَلَدِهِ عَلَيْهِ، وَعِلْمٌ أَفْشَاهُ يُعْمَلُ بِهِ بَعْدَهُ "
Muhammad ibn as-Salt informed us; Mansur ibn Abi al-Aswad narrated to us, from Abu Ishaq ash-Shaybani, from Hammad, from Ibrahim, who said: "Three qualities follow a man after his death: charity that continues after him, his child's prayer for him, and knowledge he spread that is acted upon after him."