Ibn Abu Layla reported,

Qays bin Saad and Sahl bin Hunayf were at Qadisiyyah when a funeral procession passed by them, and they both stood up. They were told, "It is one of the local inhabitants."They replied, "A funeral procession passed by the Messenger of Allah ﷺ and he stood up. He was told, 'He is a Jew.' He responded, 'Is it not a soul?'"

Muslim 2225

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا غندر عن شعبة ح و حدثنا محمد بن المثنى وابن بشار قالا حدثنا محمد بن جعفر حدثنا شعبة عن عمرو بن مرة

عن ابن أبي ليلى

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

مسلم 2225صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Funerals
Chapter
Standing for the funeral
Numbering
Darussalam 2225
Muslim 2225