Abdullah bin Abbas reported,

A woman from Juhaynah came to the Prophet ﷺ and said, "My mother vowed to perform Hajj, but she did not perform it before she died. Should I perform Hajj on her behalf?"He replied, "Yes, perform Hajj on her behalf. Tell me, if your mother had a debt, would you not pay it off? Pay what is owed to Allah, for Allah has a greater right to be fulfilled."

Bukhari 1852

Sahih

حدثنا موسى بن إسماعيل حدثنا أبو عوانة عن أبي بشر عن سعيد بن جبير

عن ابن عباس رضي الله عنهما

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

البخاري 1852صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Game animal penalties
Chapter
Hajj and vows on behalf of the deceased, and a man performing Hajj on behalf of a woman
Numbering
Darussalam 1852
Bukhari 1852