Abdullah bin Abbas reported,

A woman came to the Prophet ﷺ and said, "My sister has died, and she owed a fast of two consecutive months."He asked, "Tell me, if your sister had owed a debt, would you have paid it off for her?"She replied, "Yes."He said, "Then the claim of Allah has even greater right."

Tirmidhi 717

Sahih

حدثنا أبو كريب حدثنا أبو خالد الأحمر عن الأعمش بهذا الإسناد نحوه قال و سمعت محمدا يقول جود أبو خالد الأحمر هذا الحديث عن الأعمش قال محمد وقد روى غير أبي خالد عن الأعمش مثل رواية أبي خالد

الترمذي 717صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Fasting
Chapter
Fasting on behalf of the deceased
Numbering
Darussalam 717
Tirmidhi 717