"A funeral passed by us and the Messenger of Allah stood up and we stood with him. I said: 'O Messenger of Allah, it is a Jewish funeral.' He said: 'Death is something terrifying, so if you see a funeral, stand up,"' This is the wording of Khalid. (Using translation from Nasāʾī 1922)
مُرَّتْ بِنَا جِنَازَةٌ فَقَامَ رَسُولُ اللهِ ﷺ وَقُمْنَا مَعَهُ فَقُلْتُ يَا رَسُولَ اللهِ إِنَّمَا هِيَ جِنَازَةُ يَهُودِيَّةٍ قَالَ «إِنَّ الْمَوْتَ فَزَعٌ فَإِذَا رَأَيْتُمُ الْجِنَازَةَ فَقُومُوا» اللَّفْظُ لِخَالِدٍ