Abdul-Rahman bin Abu Layla reported,

Sahl bin Hunayf and Qays bin Saad were sitting in Qadisiyyah when a funeral procession passed by them, so they stood up. Someone said to them, "It is from the people of the land," meaning from the protected non-Muslim residents.They replied, "A funeral procession once passed by the Prophet ﷺ and he stood up. He was told, 'It is the funeral of a Jew.' He said, 'Is it not a soul?'"

Azami 3660

Sahih

عن عبد الرحمن بن أبي ليلى قال

كان سهل بن حنيف وقيس ابن سعد قاعدين بالقادسية، فمروا عليهما بجنازة فقاما، فقيل لهما: إنها من أهل الأرض- أي من أهل الذمة- فقالا: إن النبي ﷺ مرت به جنازة فقام، فقيل له: إنها جنازة يهودي، فقال: أليست نفسا؟

الأعظمي 3660صحيح
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 3660 (2nd edition)
Azami 3660