Abdullah bin Abbas reported,

A man came to the Prophet ﷺ and said to him, "My sister vowed to perform Hajj, but she has died."The Prophet ﷺ asked, "If she had a debt, would you pay it off?"He replied, "Yes."The Prophet said, "Then fulfill what is owed to Allah, for Allah has the greater right to be repaid."

Azami 4762

Sahih

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

أتى رجل النبي ﷺ فقال له: إن أختي قد نذرت أن تحج وإنها ماتت؟ فقال النبي ﷺ: لو كان عليها دين أكنت قاضيه؟ قال: نعم. قال: فاقض الله فهو أحق بالقضاء.

الأعظمي 4762صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Obligation of Hajj, its virtue, and its conditions
Section
Hajj on behalf of the deceased
Numbering
Jami al-Kamil 4762 (2nd edition)
Azami 4762