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