Sunan an-Nasa'i, Hadith 1929 ⓘ
It was narrated from Anas that: a funeral passed by the Messenger of Allah and he stood up. It was said: "It is the funeral of a Jew." He said: "We stood up for the angels."
أَخْبَرَنَا إِسْحَاقُ، قَالَ أَنْبَأَنَا النَّضْرُ، قَالَ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ قَتَادَةَ، عَنْ أَنَسٍ، أَنَّ جَنَازَةً، مَرَّتْ بِرَسُولِ اللَّهِ صلى الله عليه وسلم فَقَامَ فَقِيلَ إِنَّهَا جَنَازَةُ يَهُودِيٍّ . فَقَالَ " إِنَّمَا قُمْنَا لِلْمَلاَئِكَةِ " .
also referenced under: Book 21, Hadith 113 (In-Book) & Volume 3, Book 21, Hadith 1931 (DarusSalam)