Hadith 1311

Narrated Jabir bin `Abdullah:

A funeral procession passed in front of us and the Prophet stood up and we too stood up. We said, 'O Allah's Apostle! This is the funeral procession of a Jew." He said, "Whenever you see a funeral procession, you should stand up."

حَدَّثَنَا مُعَاذُ بْنُ فَضَالَةَ، حَدَّثَنَا هِشَامٌ، عَنْ يَحْيَى، عَنْ عُبَيْدِ اللَّهِ بْنِ مِقْسَمٍ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ ـ رضى الله عنهما ـ قَالَ مَرَّ بِنَا جَنَازَةٌ فَقَامَ لَهَا النَّبِيُّ صلى الله عليه وسلم وَقُمْنَا بِهِ‏.‏ فَقُلْنَا يَا رَسُولَ اللَّهِ، إِنَّهَا جَنَازَةُ يَهُودِيٍّ‏.‏ قَالَ ‏"‏ إِذَا رَأَيْتُمُ الْجَنَازَةَ فَقُومُوا ‏"‏‏.‏

Reference: 112010
In-book reference: Book 23, Hadith 1311
Hadith 1311 - Funerals (Al-Janaa'iz) - Sahih al-Bukhari - Sunnah.com