كتاب الوصية
25  
The Book of Wills
(2)
Chapter: The Reward For Charity Reaches The Deceased
(2)
باب وُصُولِ ثَوَابِ الصَّدَقَاتِ إِلَى الْمَيِّتِ ‏‏
Sahih Muslim 1004 d

A'isha (Allah be pleased with her) reported that a man came to Allah's Apostle (ﷺ) and said:

Allah's Messenger, my mother died all of a sudden without making any will. I think if (she could have the opportunity) to speak she would have made a Sadaqa. Would there be any reward for her if I give charity on her behalf? He (the Holy Prophet) said: Yes.
حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ نُمَيْرٍ، حَدَّثَنَا مُحَمَّدُ بْنُ بِشْرٍ، حَدَّثَنَا هِشَامٌ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، أَنَّ رَجُلاً، أَتَى النَّبِيَّ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ إِنَّ أُمِّيَ افْتُلِتَتْ نَفْسُهَا وَلَمْ تُوصِ وَأَظُنُّهَا لَوْ تَكَلَّمَتْ تَصَدَّقَتْ أَفَلَهَا أَجْرٌ إِنْ تَصَدَّقْتُ عَنْهَا قَالَ ‏ "‏ نَعَمْ ‏"‏.
Reference : Sahih Muslim 1004d
In-book reference : Book 25, Hadith 18
USC-MSA web (English) reference : Book 13, Hadith 4003
  (deprecated numbering scheme)