[Machine] When the Messenger of Allah ﷺ was visited or passed by a funeral, he would ask them: "Did he leave any debt?" If they said, "Yes," he would say, "Did he leave any means to repay it?" If they said, "Yes," he would pray for him. And if they said, "No," he would say, "Pray for your companion."
كَانَ رَسُولُ اللهِ ﷺ إِذَا أُتِيَ أَوْ مُرَّ عَلَيْهِ بِجِنَازَةٍ سَأَلَهُمْ هَلْ تَرَكَ دَيْنًا؟ فَإِنْ قَالُوا نَعَمْ قَالَ هَلْ تَرَكَ وَفَاءً؟ فَإِنْ قَالُوا نَعَمْ صَلَّى عَلَيْهِ وَإِنْ قَالُوا لَا قَالَ صَلُّوا عَلَى صَاحِبِكُمْ