Anas bin Malik reported,

A funeral procession passed by the Messenger of Allah ﷺ and he stood up. It was said to him, "It is the funeral of a Jew." He replied, "We only stood for the angels."

Azami 3662

Sahih

عن أنس

أن جنازة مرت برسول الله ﷺ فقام، فقيل: إنها جنازة يهودي، فقال: إنما قمنا للملائكة.

الأعظمي 3662صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Deceased, carrying the funeral bier, and standing for it
Section
Standing for the funeral of non-Muslims
Numbering
Jami al-Kamil 3662 (2nd edition)