Sahih Muslim 1630
Sahih Muslim · Book 25: The Book of Wills · The Reward For Charity Reaches The Deceased
Abu Huraira (Allah be pleased with him) reported that a person said to Allah's Apostle (ﷺ):
حَدَّثَنَا يَحْيَى بْنُ أَيُّوبَ ، وَقُتَيْبَةُ بْنُ سَعِيدٍ ، وَعَلِيُّ بْنُ حُجْرٍ ، قَالُوا حَدَّثَنَا إِسْمَاعِيلُ، - وَهُوَ ابْنُ جَعْفَرٍ - عَنِ الْعَلاَءِ ، عَنْ أَبِيهِ ، عَنْ أَبِي هُرَيْرَةَ ، أَنَّ رَجُلاً، قَالَ لِلنَّبِيِّ صلى الله عليه وسلم إِنَّ أَبِي مَاتَ وَتَرَكَ مَالاً وَلَمْ يُوصِ فَهَلْ يُكَفِّرُ عَنْهُ أَنْ أَتَصَدَّقَ عَنْهُ قَالَ " نَعَمْ " .
My father died and left behind property without making any will regarding it. Would he be relieved of the burden of his sins if I give sadaqa on his behalf? He (the Holy Prophet) said: Yes.