Sahih al-Bukhari, 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 Messenger! This is the funeral procession of a Jew." He said, "Whenever you see a funeral procession, you should stand up."
حَدَّثَنَا مُعَاذُ بْنُ فَضَالَةَ، حَدَّثَنَا هِشَامٌ، عَنْ يَحْيَى، عَنْ عُبَيْدِ اللَّهِ بْنِ مِقْسَمٍ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ ـ رضى الله عنهما ـ قَالَ مَرَّ بِنَا جَنَازَةٌ فَقَامَ لَهَا النَّبِيُّ صلى الله عليه وسلم وَقُمْنَا بِهِ. فَقُلْنَا يَا رَسُولَ اللَّهِ، إِنَّهَا جَنَازَةُ يَهُودِيٍّ. قَالَ " إِذَا رَأَيْتُمُ الْجَنَازَةَ فَقُومُوا " .
also referenced under: Book 23, Hadith 70 (In-Book) & Volume 2, Book 23, Hadith 398 (USC-MSA)