"When any one of you sees a funeral and is not walking with it, let him stand up until it has passed him, or until (the body) is placed (in the grave) before if passes him." (Using translation from Nasāʾī 1915)
عَنِ النَّبِيِّ ﷺ أَنَّهُ قَالَ «إِذَا رَأَى أَحَدُكُمُ الْجِنَازَةَ فَلَمْ يَكُنْ مَاشِيًا مَعَهَا فَلْيَقُمْ حَتَّى تُخَلِّفَهُ أَوْ تُوضَعَ مِنْ قَبْلِ أَنْ تُخَلِّفَهُ»