Sunan an-Nasa'i, Book 21, Hadith 107 (Nasa'i 1929)

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."'