Sahih al-Bukhari 1310
Sahih al-Bukhari · Book 23: Funerals (Al-Janaa'iz) · Whoever accompanies a funeral procession should not sit till the coffin is put down
Narrated Abu Sa`id Al-Khudri:
حَدَّثَنَا مُسْلِمٌ ـ يَعْنِي ابْنَ إِبْرَاهِيمَ ـ حَدَّثَنَا هِشَامٌ ، حَدَّثَنَا يَحْيَى ، عَنْ أَبِي سَلَمَةَ ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " إِذَا رَأَيْتُمُ الْجَنَازَةَ فَقُومُوا، فَمَنْ تَبِعَهَا فَلاَ يَقْعُدْ حَتَّى تُوضَعَ " .
The Prophet (ﷺ) said, "When you see a funeral procession, you should stand up, and whoever accompanies it should not sit till the coffin is put down."