Sunan an-Nasa'i, Book 21, Hadith 107 (In-Book) ⓘ
It was narrated from Muhammad that: a funeral passed by Al-Hasan bin 'Ali and Ibn 'Abbas. Al-Hasan stood up but Ibn 'Abbas did not/ Al-Hasan said: 'Didn't the Messenger of Allah stand up for the funeral of a Jew?' Ibn 'Abbas said: 'Yes, then he sat down."'
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا حَمَّادٌ، عَنْ أَيُّوبَ، عَنْ مُحَمَّدٍ، أَنَّ جَنَازَةً، مَرَّتْ بِالْحَسَنِ بْنِ عَلِيٍّ وَابْنِ عَبَّاسٍ فَقَامَ الْحَسَنُ وَلَمْ يَقُمِ ابْنُ عَبَّاسٍ فَقَالَ الْحَسَنُ أَلَيْسَ قَدْ قَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم لِجَنَازَةِ يَهُودِيٍّ قَالَ ابْنُ عَبَّاسٍ نَعَمْ ثُمَّ جَلَسَ .
also referenced under: Hadith 1924 (Reference) & Volume 3, Book 21, Hadith 1925 (DarusSalam)