Sunan an-Nasa'i, Volume 4, Book 30, Hadith 3679 (DarusSalam)

It was narrated from 'Aishah that a man said to the Messenger of Allah: "My mother died unexpectedly; if she had been able to speak she would have given charity. Should I give charity on her behalf?" The Messenger of Allah said: "Yes." So he gave charity on her behalf.

أَخْبَرَنَا مُحَمَّدُ بْنُ سَلَمَةَ، قَالَ حَدَّثَنَا ابْنُ الْقَاسِمِ، عَنْ مَالِكٍ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، أَنَّ رَجُلاً، قَالَ لِرَسُولِ اللَّهِ صلى الله عليه وسلم إِنَّ أُمِّي افْتُلِتَتْ نَفْسُهَا وَإِنَّهَا لَوْ تَكَلَّمَتْ تَصَدَّقَتْ أَفَأَتَصَدَّقُ عَنْهَا فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ نَعَمْ ‏" ‏‏.‏ فَتَصَدَّقَ عَنْهَا‏.‏

sunnah.com