A woman came to the Prophet ﷺ and said, "My mother vowed to perform the Hajj but she died before performing it. Should I perform the Hajj on her behalf?" He said, "Yes! Perform the Hajj on her behalf. See, if your mother had been in debt, would you have paid her debt?" She said, "Yes." He said, "So you should pay what is for Him as Allah has more right that one should fulfill one's obligations to Him. " (Using translation from Bukhārī 7315)
أَنَّ امْرَأَةً جَاءَتْ إِلَى رَسُولِ اللهِ ﷺ فَقَالَتْ يَعْنِي إِنَّ أُمِّي نَذَرَتْ أَنْ تَحُجَّ فَمَاتَتْ قَبْلَ أَنْ تَحُجَّ أَفَأَحُجُّ عَنْهَا؟ قَالَ نَعَمْ فَحُجِّي عَنْهَا أَرَأَيْتِ لَوْ كَانَ عَلَى أُمِّكِ دَيْنٌ أَكُنْتِ قَاضِيَتِهِ؟ قَالَتْ نَعَمْ قَالَ اقْضُوا حَقَّ اللهِ فَإِنَّ اللهَ أَحَقُّ بِالْوَفَاءِ