Bulugh al-Maram
Bulugh al-Maram 572
Arabic hadith text
وَعَنْ أَبِي سَعِيدٍ - رضى الله عنه - أَنَّ رَسُولَ اَللَّهِ - صلى الله عليه وسلم -قَالَ: { إِذَا رَأَيْتُمُ الْجَنَازَةَ فَقُومُوا, فَمَنْ تَبِعَهَا فَلَا يَجْلِسْ حَتَّى تُوضَعَ } مُتَّفَقٌ عَلَيْه ِ 1 .1 - صحيح. رواه البخاري (1310)، ومسلم (959) (77)، واللفظ لمسلم، ولفظ البخاري مثله إلا أن عنده: "فلا يقعد".
Translation
Abu Said reported that the Messenger of Allah (peace and blessings be upon him) said: When you see a funeral procession, stand. Whoever follows it should not sit until it is set down. Agreed upon.
The wording is from Muslim (959, 77); al-Bukhari (1310) has the same wording except that it says, Do not sit down. The editor grades it sahih.