Abdullah bin Abbas reported,

A woman came to the Messenger of Allah ﷺ and said, "Messenger of Allah, my mother has died, and she had a vow of fasting still owed. Should I fast on her behalf?"He replied, "Tell me, if your mother had a debt and you paid it off, would that settle it for her?"She said, "Yes."He said, "Then fast on behalf of your mother."

Azami 7129

Sahih

عن ابن عباس قال

جاءت امرأة إلى رسول الله ﷺ فقالت: يا رسول الله، إن أمي ماتت وعليها صوم نذر أفأصوم عنها؟ قال: أرأيت لو كان على أمك دين فقضيتيه أكان يؤدي ذلك عنها؟ قالت: نعم. قال: فصومي عن أمك

الأعظمي 7129صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Oaths and vows
Chapter
Vows
Section
Fulfilling a fasting vow on behalf of the deceased
Numbering
Jami al-Kamil 7129 (2nd edition)
Azami 7129