Sunan an-Nasa'i #1927 · The Book of Funerals

Sunan an-Nasa'iIt was narrated from Ja'far bin Muhammad from his father that
Sunan an-Nasa'i · Book 21 · The Book of Funerals
Sunan an-Nasa'i · كتاب 21 · كتاب الجنائز
Al-Hasan bin 'Ali was sitting when a funeral passed by. The People stood until the funeral had passed, and Al-Hasan said: "The funeral of Jew passed by when the Messenger of Allah was sitting in its path, and he did not want the funeral of a Jew to pass over his head, so he stood up
أَخْبَرَنَا إِبْرَاهِيمُ بْنُ هَارُونَ الْبَلْخِيُّ، قَالَ حَدَّثَنَا حَاتِمٌ، عَنْ جَعْفَرِ بْنِ مُحَمَّدٍ، عَنْ أَبِيهِ، أَنَّ الْحَسَنَ بْنَ عَلِيٍّ، كَانَ جَالِسًا فَمُرَّ عَلَيْهِ بِجَنَازَةٍ فَقَامَ النَّاسُ حَتَّى جَاوَزَتِ الْجَنَازَةُ فَقَالَ الْحَسَنُ إِنَّمَا مُرَّ بِجَنَازَةِ يَهُودِيٍّ وَكَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم عَلَى طَرِيقِهَا جَالِسًا فَكَرِهَ أَنْ تَعْلُوَ رَأْسَهُ جَنَازَةُ يَهُودِيٍّ فَقَامَ ‏.‏
Reference : Sunan an-Nasa'i 1927In-book reference : Book 21, Hadith 110