A woman came to the Prophet ﷺ and said, "Messenger of Allah, my mother has died and she still owed fasts. Should I fast on her behalf?"He replied, "Yes."
حدثنا زهير بن محمد حدثنا عبد الرزاق عن سفيان عن عبد الله بن عطاء
جاءت امرأة إلى النبي ﷺ فقالت يا رسول الله إن أمي ماتت وعليها صوم أفأصوم عنها قال نعم
Muslim narrated it in the chapter on fasting, in the section on fulfilling the fast on behalf of the deceased, hadith no. 1149, from the hadith of Abdul-Razzaq, in abridged form. See also hadith no. 2394.