I saw a funeral among Banu Salimah so I stood up. Nafi’ bin Jubair said to me: Sit down, and I will tell you something decisive about this: Masʿood bin al-Hakam az-Zuraqi told me that he heard ‘Ali bin Abi Talib ؓ in Rahbatal-Koofah saying: The Messenger of Allah ﷺ told us to stand up for funerals; then later on he remained seated and told us to remain seated.
شَهِدْتُ جَنَازَةً فِي بَنِي سَلَمَةَ فَقُمْتُ فَقَالَ لِي نَافِعُ بْنُ جُبَيْرٍ اجْلِسْ فَإِنِّي سَأُخْبِرُكَ فِي هَذَا بِثَبْتٍ حَدَّثَنِي مَسْعُودُ بْنُ الْحَكَمِ الزُّرَقِيُّ أَنَّهُ سَمِعَ عَلِيَّ بْنَ أَبِي طَالِبٍ بِرَحَبَةِ الْكُوفَةِ وَهُوَ يَقُولُ كَانَ رَسُولُ اللهِ ﷺ أَمَرَنَا بِالْقِيَامِ فِي الْجِنَازَةِ ثُمَّ جَلَسَ بَعْدَ ذَلِكَ وَأَمَرَنَا بِالْجُلُوسِ