Abdullah bin Abbas reported,

A man said to the Messenger of Allah ﷺ, "My mother has passed away. Will it benefit her if I give charity on her behalf?"He replied, "Yes."The man said, "I have an orchard, and I ask you to bear witness that I have given it as charity on her behalf."

Bukhari 2770

Sahih

حدثنا محمد بن عبد الرحيم أخبرنا روح بن عبادة حدثنا زكرياء بن إسحاق قال حدثني عمرو بن دينار عن عكرمة

عن ابن عباس رضي الله عنهما

أن رجلا قال لرسول الله ﷺ إن أمه توفيت أينفعها إن تصدقت عنها قال نعم قال فإن لي مخرافا وأشهدك أني قد تصدقت به عنها

البخاري 2770صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Bequests
Chapter
If someone endows land without specifying its boundaries, it is permissible, and likewise for charity
Numbering
Darussalam 2770
Bukhari 2770