Abdullah bin Abbas reported,

A woman came to the Prophet ﷺ and said, "My mother had a month of fasting due from her. Should I make it up on her behalf?"He replied, "If your mother had a debt, would you pay it off for her?"She said, "Yes."He said, "Then a debt owed to Allah is even more deserving of being paid."

Abu Dawud 3310

Sahih

حدثنا مسدد حدثنا يحيى قال سمعت الأعمش ح و حدثنا محمد بن العلاء حدثنا أبو معاوية عن الأعمش المعنى عن مسلم البطين عن سعيد بن جبير

عن ابن عباس

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

أبو داود 3310صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Oaths and vows
Chapter
Whoever dies while owing fasts, his guardian fasts on his behalf
Numbering
Darussalam 3310
Abu Dawud 3310