Burayda reported,

A woman came to the Messenger of Allah ﷺ and said, "I had given my mother a slave girl in charity, and she has died leaving that slave girl behind."He said, "Your reward is confirmed, and she has returned to you through inheritance."She said, "She died owing a month's fast. Will it suffice, or be fulfilled on her behalf, if I fast for her?"He said, "Yes."She said, "She never performed Hajj. Will it suffice, or be fulfilled on her behalf, if I perform Hajj for her?"He said, "Yes."

Abu Dawud 2877

Sahih

حدثنا أحمد بن يونس حدثنا زهير حدثنا عبد الله بن عطاء عن عبد الله بن بريدة

عن أبيه بريدة

أن امرأة أتت رسول الله ﷺ فقالت كنت تصدقت على أمي بوليدة وإنها ماتت وتركت تلك الوليدة قال قد وجب أجرك ورجعت إليك في الميراث قالت وإنها ماتت وعليها صوم شهر أفيجزئ أو يقضي عنها أن أصوم عنها قال نعم قالت وإنها لم تحج أفيجزئ أو يقضي عنها أن أحج عنها قال نعم

أبو داود 2877صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Bequests
Chapter
Man who gives a gift then has it bequeathed to him or inherits it
Numbering
Darussalam 2877
Abu Dawud 2877