Sahih Muslim , Book 11, Hadith 95 (In-Book) ⓘ
It is narrated on the authority of 'Amir Ibn Rabi'a (may Allah be pleased with him) that the Prophet said: Whenever you see a funeral procession, stand up for that until it moves away or is lowered on the ground.
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَعَمْرٌو النَّاقِدُ، وَزُهَيْرُ بْنُ حَرْبٍ، وَابْنُ، نُمَيْرٍ قَالُوا حَدَّثَنَا سُفْيَانُ، عَنِ الزُّهْرِيِّ، عَنْ سَالِمٍ، عَنْ أَبِيهِ، عَنْ عَامِرِ بْنِ رَبِيعَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " إِذَا رَأَيْتُمُ الْجَنَازَةَ فَقُومُوا لَهَا حَتَّى تُخَلِّفَكُمْ أَوْ تُوضَعَ " .
also referenced under: Hadith 958 (Reference) & Book 4, Hadith 2090 (USC-MSA)