The Prophet (ﷺ) stood up for a funeral (to show respect) and thereafter he sat down.
Sunan Abi Dawud Book 21, Hadith 87