Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:1543Abū Bakr b. Abū Shaybah And Hannād b. al-Sarī > ʿAbdah b. Sulaymān > Muḥammad b. ʿAmr > Abū Salamah > Abū Hurayrah

“A funeral has passed by the Prophet ﷺ and he stood up and said: ‘Stand up out of recognition of the enormity of death.’”  

ابن ماجة:١٥٤٣حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ وَهَنَّادُ بْنُ السَّرِيِّ قَالاَ حَدَّثَنَا عَبْدَةُ بْنُ سُلَيْمَانَ عَنْ مُحَمَّدِ بْنِ عَمْرٍو عَنْ أَبِي سَلَمَةَ عَنْ أَبِي هُرَيْرَةَ قَالَ

مُرَّ عَلَى النَّبِيِّ ﷺ بِجِنَازَةٍ فَقَامَ وَقَالَ قُومُوا فَإِنَّ لِلْمَوْتِ فَزَعًا  


See similar narrations below:

Collected by Aḥmad, Suyūṭī
ahmad:7860Muḥammad b. Bishr > Muḥammad b. ʿAmr > Abū Salamahaʿan Abū Hurayrah

“A funeral has passed by the Prophet ﷺ and he stood up and said: ‘Stand up out of recognition of the enormity of death.’” (Using translation from Ibn Mājah 1543)   

أحمد:٧٨٦٠حَدَّثَنَا مُحَمَّدُ بْنُ بِشْرٍ حَدَّثَنَا مُحَمَّدُ بْنُ عَمْرٍو عَنْ أَبِي سَلَمَةَعَنْ أَبِي هُرَيْرَةَ قَالَ

مُرَّ عَلَى رَسُولِ اللهِ ﷺ بِجِنَازَةٍ فَقَالَ قُومُوا فَإِنَّ لِلْمَوْتِ فَزَعًا