Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
nasai:1927Ibrāhīm b. Hārūn al-Balkhī > Ḥātim > Jaʿfar b. Muḥammad from his father

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

النسائي:١٩٢٧أَخْبَرَنَا إِبْرَاهِيمُ بْنُ هَارُونَ الْبَلْخِيُّ قَالَ حَدَّثَنَا حَاتِمٌ عَنْ جَعْفَرِ بْنِ مُحَمَّدٍ عَنْ أَبِيهِ أَنَّ الْحَسَنَ بْنَ عَلِيٍّ كَانَ جَالِسًا فَمُرَّ عَلَيْهِ بِجَنَازَةٍ فَقَامَ النَّاسُ حَتَّى جَاوَزَتِ الْجَنَازَةُ فَقَالَ

الْحَسَنُ إِنَّمَا مُرَّ بِجَنَازَةِ يَهُودِيٍّ وَكَانَ رَسُولُ اللَّهِ ﷺ عَلَى طَرِيقِهَا جَالِسًا فَكَرِهَ أَنْ تَعْلُوَ رَأْسَهُ جَنَازَةُ يَهُودِيٍّ فَقَامَ  


See similar narrations below:

Collected by Nasāʾī's Kubrá
nasai-kubra:2065Ibrāhīm b. Hārūn al-Balkhī > Ḥātim > Jaʿfar b. Muḥammad from his father

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." (Using translation from Nasāʾī 1927)  

الكبرى للنسائي:٢٠٦٥أَخْبَرَنِي إِبْرَاهِيمُ بْنُ هَارُونَ الْبَلْخِيُّ قَالَ حَدَّثَنَا حَاتِمٌ عَنْ جَعْفَرِ بْنِ مُحَمَّدٍ عَنْ أَبِيهِ أَنَّ الْحَسَنَ بْنَ عَلِيٍّ كَانَ جَالِسًا فَمُرَّ عَلَيْهِ بِجِنَازَةٍ فَقَامَ النَّاسُ حَتَّى جَاوَزَتِ الْجِنَازَةُ فَقَالَ

الْحَسَنُ إِنَّمَا مُرَّ بِجِنَازَةِ يَهُودِيٍّ وَكَانَ رَسُولُ اللهِ ﷺ عَلَى طَرِيقِهَا جَالِسًا «فَكَرِهَ أَنْ تَعْلُوَ رَأْسَهُ جِنَازَةُ يَهُودِيٍّ فَقَامَ»