عَنْ عَامِرِ بْنِ رَبِيعَةَ رَضِيَ اللَّهُ عَنْهُ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ: ((إِذَا رَأَى أَحَدُكُمُ الْجَنَازَةَ وَلَمْ يَكُنْ مَاشِيًا مَعَهَا فَلْيَقُمْ حَتَّى تُجَاوِزَهُ أَوْ تُوَضَعَ))
It is narrated from Sayyiduna Amir bin Rabi’ah (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: When any one of you sees a funeral procession, and he is not accompanying it, he should stand until it passes by him or it is placed down.