Muhammad reported,

A funeral procession passed by Hasan bin Ali and Ibn Abbas. Hasan stood up, but Ibn Abbas did not.Hasan said, "Did the Messenger of Allah ﷺ not stand up for the funeral of a Jew?"Ibn Abbas replied, "Yes, but then he sat down."

Azami 3664

Sahih

عن محمد

أن جنازة مرت بالحسن بن علي وابن عباس، فقام الحسن، ولم يقم ابن عباس، فقال الحسن: أليس قد قام رسول الله ﷺ لجنازة يهودي؟ قال ابن عباس: نعم، ثم جلس.

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