Bulugh al-Maram 716
وَعَنْهُ: أَنَّ امْرَأَةً مِنْ جُهَيْنَةَ جَاءَتْ إِلَى النَّبِيِّ - صلى الله عليه وسلم - فَقَالَتْ: إِنَّ أُمِّي نَذَرَتْ أَنْ تَحُجَّ, فَلَمْ تَحُجَّ حَتَّى مَاتَتْ, أَفَأَحُجُّ عَنْهَا? قَالَ: «نَعَمْ, حُجِّي عَنْهَا, أَرَأَيْتِ لَوْ كَانَ عَلَى أُمِّكِ دَيْنٌ, أَكُنْتِ قَاضِيَتَهُ? اقْضُوا اللَّهَ, فَاللَّهُ أَحَقُّ بِالْوَفَاءِ». رَوَاهُ الْبُخَارِيُّ.
From him, that a woman from Juhaynah came to the Prophet ﷺ and said: "My mother vowed to perform Hajj, but she did not perform Hajj before she died. May I perform Hajj on her behalf?" He said: "Yes, perform Hajj on her behalf. Do you think that if your mother owed a debt you would pay it? Pay [what is due to] Allah, for Allah is more entitled to be paid." Reported by al-Bukhari.