Hadith 9185

حَدَّثَنَا مُعَاوِيَةُ ، قَالَ : حَدَّثَنَا أَبُو إِسْحَاقَ ، عَنِ الْأَعْمَشِ ، عَنْ أَبِي صَالِحٍ ، عَنْ أَبِي هُرَيْرَة ، قَالَ : كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا أُتِيَ أَوْ مُرَّ عَلَيْهِ بِجِنَازَةٍ ، سَأَلَهُمْ : " هَلْ تَرَكَ دَيْنًا ؟ " . فَإِنْ قَالُوا : نَعَمْ . قَالَ : " هَلْ تَرَكَ وَفَاءً ؟ " ، فَإِنْ قَالُوا : نَعَمْ . صَلَّى عَلَيْهِ ، وَإِنْ قَالُوا : لَا . قَالَ : " صَلُّوا عَلَى صَاحِبِكُمْ " .
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 his funeral prayer. 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 مسند احمد / مسند المكثرين من الصحابة / 9185
Hadith Grading حکم دارالسلام: إسناده صحيح، خ: 6731، م: 1619