Hadith 1968
Book 21, Hadith 146أَخْبَرَنَا يُونُسُ بْنُ عَبْدِ الأَعْلَى، قَالَ أَنْبَأَنَا ابْنُ وَهْبٍ، قَالَ أَخْبَرَنِي يُونُسُ، وَابْنُ أَبِي ذِئْبٍ، عَنِ ابْنِ شِهَابٍ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ إِذَا تُوُفِّيَ الْمُؤْمِنُ وَعَلَيْهِ دَيْنٌ سَأَلَ " هَلْ تَرَكَ لِدَيْنِهِ مِنْ قَضَاءٍ " . فَإِنْ قَالُوا نَعَمْ صَلَّى عَلَيْهِ وَإِنْ قَالُوا لاَ قَالَ " صَلُّوا عَلَى صَاحِبِكُمْ " . فَلَمَّا فَتَحَ اللَّهُ عَزَّ وَجَلَّ عَلَى رَسُولِهِ صلى الله عليه وسلم قَالَ " أَنَا أَوْلَى بِالْمُؤْمِنِينَ مِنْ أَنْفُسِهِمْ فَمَنْ تُوُفِّيَ وَعَلَيْهِ دَيْنٌ فَعَلَىَّ قَضَاؤُهُ وَمَنْ تَرَكَ مَالاً فَهُوَ لِوَرَثَتِهِ " .
Abū Hurayrah narrated that when a believer died owing a debt, the Messenger of Allah (ﷺ) would ask, “Has he left anything with which to pay off his debt?” If they said yes, he would offer the funeral prayer for him. If they said no, he would say, “Offer the funeral prayer for your companion.”
When Allah, Mighty and Majestic, granted victory to His Messenger (ﷺ), he said, “I have a greater claim upon the believers than they have upon themselves (Al-Aḥzāb 33:6). So if anyone dies owing a debt, it is my responsibility to pay it off, and if anyone leaves behind property, it belongs to his heirs.”
Grade Sahih (Darussalam)