Musnad Ahmad 8950
حَدَّثَنَا سُلَيْمَانُ بْنُ دَاوُدَ ، قَالَ: أَنْبَأَنَا أَبُو زُبَيْدٍ ، عَنْ الْأَعْمَشِ ، عَنْ أَبِي صَالِحٍ ، عَنْ أَبِي هُرَيْرَةَ ، قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا مَرَّتْ بِهِ جِنَازَةٌ سَأَلَهُمْ: " أعَلَيْهِ دَيْنٌ؟" فَإِنْ قَالُوا: نَعَمْ، قَالَ:" تَرَكَ وَفَاءً؟" فَإِنْ قَالُوا: نَعَمْ، صَلَّى عَلَيْهِ، وَإِلَّا قَالَ:" صَلُّوا عَلَى صَاحِبِكُمْ" .
Sulayman ibn Dawud narrated to us; he said: Abu Zubayd informed us, from al-Aʿmash, from Abu Salih, from Abu Hurayrah, who said: When a funeral passed by the Messenger of Allah ﷺ, he would ask them: "Does he owe any debt?" If they said: "Yes," he would say: "Did he leave enough to pay it?" If they said: "Yes," he would pray over him; otherwise he would say: "Pray over your companion."