It wasnarrated that 'Ali bin Abu Talib said:
"The Messenger of Allah(ﷺ) stood up for a funeral, and we stood up, until he sat down,thenwe sat down."
English reference: Vol. 1, Book 6, Hadith 1544
Arabic reference: Book 6, Hadith 1611