[Machine] The Prophet ﷺ said, "If a funeral passes by you, whether it is of a Muslim, a Jew, or a Christian, stand up for it. We do not stand up for the deceased themselves, but rather for the angels who are with them." Layth (one of the narrators of the Hadith) mentioned this Hadith to Mujahid, who then said, "Abdullah ibn Sakhrabah Al-Azdi told me that we used to sit with Ali and wait for a funeral to pass by. Once another funeral passed by, we stood up. Ali asked, 'What causes you to stand up?' We said, 'This is what you have taught us, O companions of Muhammad.' Ali asked, 'And what is that?' I replied, 'Abu Musa claimed that the Messenger of Allah ﷺ said, "If a funeral passes by you, whether it is of a Muslim, a Jew, or a Christian, stand up for it. We do not stand up for the deceased themselves, but rather for the angels who are with them." Ali said, 'The Messenger of Allah ﷺ never did this more than once for a man from the Jews who were people of the Book. He used to resemble them in appearance. Once he was forbidden, he never did it again.'"
عَنِ النَّبِيِّ ﷺ قَالَ إِذَا مَرَّتْ بِكُمْ جِنَازَةٌ فَإِنْ كَانَ مُسْلِمًا أَوْ يَهُودِيًّا أَوْ نَصْرَانِيًّا فَقُومُوا لَهَا؛ فَإِنَّهُ لَيْسَ لَهَا نَقُومُ وَلَكِنْ نَقُومُ لِمَنْ مَعَهَا مِنَ الْمَلَائِكَةِ قَالَ لَيْثٌ فَذَكَرْتُ هَذَا الْحَدِيثَ لِمُجَاهِدٍ فَقَالَ حَدَّثَنِي عَبْدُ اللهِ بْنُ سَخْبَرَةَ الْأَزْدِيُّ قَالَ إِنَّا لَجُلُوسٌ مَعَ عَلِيٍّ نَنْتَظِرُ جِنَازَةً إِذْ مَرَّتْبِنَا أُخْرَى فَقُمْنَا فَقَالَ عَلِيٌّ مَا يُقِيمُكُمْ؟ فَقُلْنَا هَذَا مَا تَأْتُونَا بِهِ يَا أَصْحَابَ مُحَمَّدٍ قَالَ وَمَا ذَاكَ؟ قُلْتُ زَعَمَ أَبُو مُوسَى أَنَّ رَسُولَ اللهِ ﷺ قَالَ إِذَا مَرَّتْ بِكُمْ جِنَازَةٌ إِنْ كَانَ مُسْلِمًا أَوْ يَهُودِيًّا أَوْ نَصْرَانِيًّا فَقُومُوا لَهَا؛ فَإِنَّهُ لَيْسَ لَهَا نَقُومُ وَلَكِنْ نَقُومُ لِمَنْ مَعَهَا مِنَ الْمَلَائِكَةِ فَقَالَ عَلِيٌّ مَا فَعَلَهَا رَسُولُ اللهِ ﷺ قَطُّ غَيْرَ مَرَّةٍ بِرَجُلٍ مِنَ الْيَهُودِ وَكَانُوا أَهْلَ كِتَابٍ وَكَانَ يَتَشَبَّهُ بِهِمْ فَإِذَا نُهِيَ انْتَهَى فَمَا عَادَ لَهَا بَعْدُ