Ayesha reported,

A man came to the Prophet ﷺ and said, "Messenger of Allah, my mother died suddenly without leaving a will, and I think that had she been able to speak she would have given charity. Will she have a reward if I give charity on her behalf?"The Prophet said, "Yes."In the version narrated by Abu Usama and Rawh, the wording is, "Will I have a reward?" as Yahya bin Saeed related it, while in the version of Shuayb and Jafar the wording is, "Will she have a reward?" as Ibn Bishr narrated it.

Muslim 4222

Sahih

و حدثناه أبو كريب حدثنا أبو أسامة ح و حدثني الحكم بن موسى حدثنا شعيب بن إسحق ح و حدثني أمية بن بسطام حدثنا يزيد يعني ابن زريع حدثنا روح وهو ابن القاسم ح و حدثنا أبو بكر بن أبي شيبة حدثنا جعفر بن عون كلهم عن هشام بن عروة بهذا الإسناد أما أبو أسامة وروح ففي حديثهما فهل لي أجر كما قال يحيى بن سعيد وأما شعيب وجعفر ففي حديثهما أفلها أجر كرواية ابن بشر

مسلم 4222صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Bequests
Chapter
Reaching of charity rewards to the deceased
Numbering
Darussalam 4222
Muslim 4222