حَدَّثَنَا أَحْمَدُ بْنُ يَحْيَى بْنِ خَالِدِ بْنِ حَيَّانَ الرَّقِّيُّ، ثنا أَبُو عُبَيْدَةَ بْنُ الْفُضَيْلِ بْنِ عِيَاضٍ، ثنا أَبُو سَعِيدٍ، مَوْلَى بَنِي هَاشِمٍ، ثنا عَبَّادُ بْنُ رَاشِدٍ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ رَضِيَ اللهُ عَنْهُ، أَنَّ رَجُلًا أَتَى النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ، فَقَالَ: إِنَّ أَبِي مَاتَ وَلَمْ يَحُجَّ أَفَأَحُجُّ عَنْهُ؟ قَالَ: «أَرَأَيْتَ إِنْ كَانَ عَلَى أَبِيكَ دَيْنٌ فَقَضَيْتَهُ، أَقُضِيَ عَنْهُ؟» قَالَ: نَعَمْ، قَالَ: «فَحُجَّ عَنْ أَبِيكَ»
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that a man came to the Prophet (peace and blessings be upon him) and said: My father died without having performed Hajj; shall I perform Hajj on his behalf? He (peace and blessings be upon him) said: "Tell me, if your father had owed a debt and you had paid it, would it have been paid off?" He said: Yes. He (peace and blessings be upon him) said: "Then perform Hajj on behalf of your father."