Anas bin Malik reported,

A man came to the Prophet ﷺ and said, "My father has died without performing the obligatory pilgrimage of Islam."The Messenger of Allah ﷺ replied, "Tell me, if your father had a debt, would you pay it on his behalf?"The man said, "Yes."He said, "Then this is a debt he owes, so pay it."

Azami 4766

Hasan

عن أنس بن مالك قال

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

الأعظمي 4766حسن
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 4766 (2nd edition)