Sunan an-Nasa'i, Volume 3, Book 24, Hadith 2634 (DarusSalam)

Ibn 'Abbas said: "The wife of sinan bin Salamah Al-Juhani ordered that the question be put to the Messenger of Allah about her mother who had died and had not performed Hajj; would it be good enough if she were to perform Hajj on behalf of her mother? He said: 'Yes. If her mother owed a debt and she paid it off, would that not be good enough? Let her perform Hajj on behalf of her mother.'''

أَخْبَرَنَا عِمْرَانُ بْنُ مُوسَى، قَالَ حَدَّثَنَا عَبْدُ الْوَارِثِ، قَالَ حَدَّثَنَا أَبُو التَّيَّاحِ، قَالَ حَدَّثَنِي مُوسَى بْنُ سَلَمَةَ الْهُذَلِيُّ، أَنَّ ابْنَ عَبَّاسٍ، قَالَ أَمَرَتِ امْرَأَةُ سِنَانَ بْنِ سَلَمَةَ الْجُهَنِيِّ أَنْ يَسْأَلَ، رَسُولَ اللَّهِ صلى الله عليه وسلم أَنَّ أُمَّهَا مَاتَتْ وَلَمْ تَحُجَّ أَفَيُجْزِئُ عَنْ أُمِّهَا أَنْ تَحُجَّ عَنْهَا قَالَ ‏ "‏ نَعَمْ لَوْ كَانَ عَلَى أُمِّهَا دَيْنٌ فَقَضَتْهُ عَنْهَا أَلَمْ يَكُنْ يُجْزِئُ عَنْهَا فَلْتَحُجَّ عَنْ أُمِّهَا ‏" ‏ ‏.‏

sunnah.com