A man said to the Prophet ﷺ, "My mother has died and left no will. Should I give charity on her behalf?"He replied, "Yes."
أخبرنا الحسين بن عيسى قال أنبأنا سفيان عن عمرو عن عكرمة عن ابن عباس أن
النبي ﷺ إن أمي ماتت ولم توص أفأتصدق عنها قال نعم
Bukhari narrated it in the chapter on bequests, in the section "If a person establishes a waqf on land without specifying its boundaries, it is valid, and likewise with charity," hadith no. 2770, from the hadith of Amr bin Dinar with this same chain, and it is also in Al-Kubra, hadith no. 6481.