[Machine] Ali bin Abi Talib stood up when the Messenger of Allah ﷺ stood, then he sat down. In another narration by Malik, he said about Ali bin Abi Talib that the Messenger of Allah ﷺ used to stand up during funerals, then sit down afterwards.
عَلِيُّ بْنُ أَبِي طَالِبٍ ؓ قَامَ رَسُولُ اللهِ ﷺثُمَّ قَعَدَ وَفِي رِوَايَةِ مَالِكٍ قَالَ عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ ؓ أَنَّ رَسُولَ اللهِ ﷺكَانَ يَقُومُ فِي الْجَنَائِزِ ثُمَّ جَلَسَ بَعْدُ