Sunan Ibn Majah, Book 6, Hadith 112 (Ibn Majah 1544)

It was narrated that ‘Ali bin Abu Talib said:

“The Messenger of Allah (ﷺ) stood up for a funeral, and we stood up, until he sat down, then we sat down.”