A woman came to the Prophet ﷺ and said, "Messenger of Allah, I gave my mother a Jariya in charity, and she has died, and the Jariya has now returned to me through inheritance."He replied, "Allah has rewarded you, and has returned her to you through inheritance."She said, "My mother died without performing Hajj. Will it suffice if I perform Hajj on her behalf?"He said, "Yes."She said, "My mother owed a month of fasting. Will it suffice if I fast on her behalf?"He said, "Yes."
حدثنا إسحاق بن يوسف عن عبد الملك بن أبي سليمان عن عبد الله بن عطاء المكي
أن امرأة أتت النبي ﷺ فقالت يا رسول الله إني تصدقت على أمي بجارية فماتت وإنها رجعت إلي في الميراث قال آجرك الله ورد عليك في الميراث قالت فإن أمي ماتت ولم تحج فيجزئها أن أحج عنها قال نعم قالت فإن أمي كان عليها صوم شهر فيجزئها أن أصوم عنها قال نعم
Its isnad is sahih. Abdullah bin Ata al-Makki, originally from Taif, is trustworthy, and his hadith appears in Muslim. See Sahih Muslim 2/805, no. 1149, in the Book of Fasting, and Sunan Abu Dawud 3/116, no. 2877, in the Book of Bequests. Hakim graded it sahih 4/347, and Dhahabi concurred with him. Bayhaqi also cited it 4/151, attributing it to Muslim.