"إذَا مرَّتْ بأحدِكُمْ جِنَازةٌ فليَقُمْ حتَّى تَخْلفُهَ".
Should anyone amongst you see a bier he must stand up so long as it is within sight in case he does not intend to follow it.
قَالَ النَّبِيُّ ﷺ إِذَا رَأَى أَحَدُكُمُ الْجَنَازَةَ فَلْيَقُمْ حِينَ يَرَاهَا حَتَّى تُخَلِّفَهُ إِذَا كَانَ غَيْرَ مُتَّبِعِهَا
Should anyone amongst you see a bier he must stand up so long as it is within sight in case he does not intend to follow it. (Using translation from Muslim 958c)
قَالَ النَّبِيُّ ﷺ إِذَا رَأَىأَحَدُكُمُ الْجِنَازَةَ فَلْيَقُمْ حِينَ يَرَاهَا حَتَّى تُخَلِّفَهُ إِذَا كَانَ غَيْرَ مُتَّبِعِهَا
[Machine] The Messenger of Allah ﷺ said, "When one of you sees a funeral procession, let him stand up until it is laid down or buried."
قَالَ رَسُولُ اللهِ ﷺ إِذَا رَأَى أَحَدُكُمُ الْجِنَازَةَ فَلْيَقُمْ حَتَّى تُخَلِّفَهُ أَوْ تُوضَعَ