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.
abudawud:3175al-Qaʿnabī > Mālik > Yaḥyá b. Saʿīd > Wāqid b. ʿAmr b. Saʿd b. Muʿādh al-Anṣārī > Nāfiʿ b. Jubayr b. Muṭʿim > Masʿūd b. al-Ḥakam > ʿAlī b. Abū Ṭālib

The Prophet ﷺ stood up for a funeral (to show respect) and thereafter he sat down.  

أبو داود:٣١٧٥حَدَّثَنَا الْقَعْنَبِيُّ عَنْ مَالِكٍ عَنْ يَحْيَى بْنِ سَعِيدٍ عَنْ وَاقِدِ بْنِ عَمْرِو بْنِ سَعْدِ بْنِ مُعَاذٍ الأَنْصَارِيِّ عَنْ نَافِعِ بْنِ جُبَيْرِ بْنِ مُطْعِمٍ عَنْ مَسْعُودِ بْنِ الْحَكَمِ عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ

أَنَّ النَّبِيَّ ﷺ قَامَ فِي الْجَنَائِزِ ثُمَّ قَعَدَ بَعْدُ