صحيح البخاري Sahih Bukhari كتاب الجنائز The Book of Al-Janaiz (Funerals)
بَابُ مَنْ تَبِعَ جَنَازَةً فَلاَ يَقْعُدُ حَتَّى تُوضَعَ عَنْ مَنَاكِبِ الرِّجَالِ، فَإِنْ قَعَدَ أُمِرَ بِالْقِيَامِ:

(48) Chapter. Whoever accompanies a funeral procession should not sit till the coffin is put down from the shoulders of men, and if someone sits before this, then he is to be ordered to stand up.

2 hadith
Hadith 1309
حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ ، حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ ، عَنْ سَعِيدٍ الْمَقْبُرِيِّ ، عَنْ أَبِيهِ , قَالَ : " كُنَّا فِي جَنَازَةٍ فَأَخَذَ أَبُو هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ بِيَدِ مَرْوَانَ ، فَجَلَسَا قَبْلَ أَنْ تُوضَعَ فَجَاءَ أَبُو سَعِيدٍ رَضِيَ اللَّهُ عَنْهُ فَأَخَذَ بِيَدِ مَرْوَانَ , فَقَالَ : قُمْ فَوَاللَّهِ لَقَدْ عَلِمَ هَذَا أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ نَهَانَا عَنْ ذَلِكَ " , فَقَالَ أَبُو هُرَيْرَةَ : صَدَقَ .
Narrated Sa`id Al-Maqburi: That his father said, "While we were accompanying a funeral procession, Abu Huraira got hold of the hand of Marwan and they sat down before the coffin was put down. Then Abu Sa`id came and took hold of Marwan's hand and said, "Get up. By Allah, no doubt this (i.e. Abu Huraira) knows that the Prophet forbade us to do that." Abu Huraira said, "He (Abu Sa`id) has spoken the truth."
Hadith Reference Sahih Bukhari / The Book of Al-Janaiz (Funerals) / Hadith: 1309
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 1310
حَدَّثَنَا مُسْلِمٌ يَعْنِي ابْنَ إِبْرَاهِيمَ ، حَدَّثَنَا هِشَامٌ ، حَدَّثَنَا يَحْيَى ، عَنْ أَبِي سَلَمَةَ ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ رَضِيَ اللَّهُ عَنْهُ , عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ , قَالَ : " إِذَا رَأَيْتُمُ الْجَنَازَةَ فَقُومُوا ، فَمَنْ تَبِعَهَا فَلَا يَقْعُدْ حَتَّى تُوضَعَ " .
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."
Hadith Reference Sahih Bukhari / The Book of Al-Janaiz (Funerals) / Hadith: 1310
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة