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.
ahmad:15674Yazīd b. Hārūn > Ibn ʿAwn > Nāfiʿ > Ibn ʿUmar > ʿĀmir b. Rabīʿah

[Machine] On the authority of the Prophet ﷺ , he said, "When you see a funeral procession, stand up until it passes by you," or he said, "Stay still until it passes by you." Ibn Umar, when he saw a funeral procession, would stand up until it passed by him. And when he accompanied a funeral, he would turn his back towards the graveyards.  

أحمد:١٥٦٧٤حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ أَخْبَرَنَا ابْنُ عَوْنٍ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ عَنْ عَامِرِ بْنِ رَبِيعَةَ

عَنِ النَّبِيِّ ﷺ قَالَ إِذَا رَأَيْتَ جَنَازَةً فَقُمْ حَتَّى تُجَاوِزَكَ أَوْ قَالَ قِفْ حَتَّى تُجَاوِزَكَ قَالَ وَكَانَ ابْنُ عُمَرَ إِذَا رَأَى جَنَازَةً قَامَ حَتَّى تُجَاوِزَهُ وَكَانَ إِذَا خَرَجَ مَعَ جَنَازَةٍ وَلَّى ظَهْرَهُ الْمَقَابِرَ