We were with the Prophet ﷺ when a funeral passed hi and he stood up for it. When we went to carry it, we found that it was a funeral of a Jew. We, therefore said: Messenger of Allah, this is the funeral of a Jew. He said: Death is fearful event, so when you see a funeral, stand up. (Using translation from Abū Dāʾūd 3174)
كُنَّا مَعَ رَسُولِ اللهِ ﷺ فَمَرَّتْبِنَا جَنَازَةٌ فَقَامَ رَسُولُ اللهِ ﷺ وَقُمْنَا مَعَهُ فَلَمَّا ذَهَبْنَا لِنَحْمِلَهَا إِذَا هِيَ جَنَازَةُ يَهُودِيَّةٍ فَقُلْنَا يَا رَسُولَ اللهِ إِنَّهَا جَنَازَةُ يَهُودِيَّةٍ قَالَ إِنَّ لِلْمَوْتِ فَزَعًا فَإِذَا رَأَيْتُمُ الْجِنَازَةَ فَقُومُوا لَهَا