Bulugh al-Maram 967
وَعَنْ عَائِشَةَ -رَضِيَ اللَّهُ عَنْهَا: أَنَّ رَجُلًا أَتَى النَّبِيَّ - صلى الله عليه وسلم - قَالَ: يَا رَسُولَ اللَّهِ! إِنَّ أُمِّي اُفْتُلِتَتْ نَفْسُهَا وَلَمْ تُوصِ, وَأَظُنُّهَا لَوْ تَكَلَّمَتْ تَصَدَّقَتْ, أَفَلَهَا أَجْرٌ إِنْ تَصَدَّقْتُ عَنْهَا? قَالَ: «نَعَمْ». مُتَّفَقٌ عَلَيْهِ, وَاللَّفْظُ لِمُسْلِمٍ.
From ʿAʾishah, may Allah be pleased with her, that a man came to the Prophet ﷺ and said: "O Messenger of Allah, my mother died suddenly and did not make a will, and I think that if she had been able to speak she would have given sadaqah. Will she have a reward if I give sadaqah on her behalf?" He said: "Yes." Agreed upon, and the wording is Muslim's.