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)
كُنَّا مَعَ رَسُولِ اللَّهِ ﷺ إِذْ مَرَّتْ بِنَا جَنَازَةٌ فَقَامَ لَهَا رَسُولُ اللَّهِ ﷺ فَلَمَّا ذَهَبْنَا لِنَحْمِلَ إِذَا هِيَ جَنَازَةُ يَهُودِيٍّ قَالَ «إِنَّ لِلْمَوْتِ فَزَعًا فَإِذَا رَأَيْتُمْ جَنَازَةً فَقُومُوا»