"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.
Sunan an-Nasa'i Book 30, Hadith 39