Hadith 8950

حَدَّثَنَا سُلَيْمَانُ بْنُ دَاوُدَ ، قَالَ : أَنْبَأَنَا أَبُو زُبَيْدٍ ، عَنْ الْأَعْمَشِ ، عَنْ أَبِي صَالِحٍ ، عَنْ أَبِي هُرَيْرَةَ ، قَالَ : كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا مَرَّتْ بِهِ جِنَازَةٌ سَأَلَهُمْ : " أعَلَيْهِ دَيْنٌ ؟ " فَإِنْ قَالُوا : نَعَمْ ، قَالَ : " تَرَكَ وَفَاءً ؟ " فَإِنْ قَالُوا : نَعَمْ ، صَلَّى عَلَيْهِ ، وَإِلَّا قَالَ : " صَلُّوا عَلَى صَاحِبِكُمْ " .
It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that when a funeral was brought to the Prophet Muhammad (peace and blessings be upon him), he would first ask, "Does this person have any debt?" If the people said, "Yes," the Prophet (peace and blessings be upon him) would ask, "Has he left anything to repay it?" If the people said, "Yes!" then the Prophet (peace and blessings be upon him) would lead the funeral prayer for him. But if they replied in the negative, the Prophet (peace and blessings be upon him) would say, "You should offer the funeral prayer of your companion yourselves."
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 8950
Hadith Grading حکم دارالسلام: إسناده صحيح، خ: 6731، م: 1619