“The Messenger of Allah (ﷺ) stood up for a funeral, and we stood up, until he sat down, then we sat down.”
Sunan Ibn Majah Book 6, Hadith 112