ENOfficial
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.
Source: sunnah.com
Other translations
Arabic
أَخْبَرَنَا مُحَمَّدُ بْنُ سَلَمَةَ، قَالَ حَدَّثَنَا ابْنُ الْقَاسِمِ، عَنْ مَالِكٍ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، أَنَّ رَجُلاً، قَالَ لِرَسُولِ اللَّهِ صلى الله عليه وسلم إِنَّ أُمِّي افْتُلِتَتْ نَفْسُهَا وَإِنَّهَا لَوْ تَكَلَّمَتْ تَصَدَّقَتْ أَفَأَتَصَدَّقُ عَنْهَا فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " نَعَمْ ". فَتَصَدَّقَ عَنْهَا.
sunnah.com