Sunan Abi Dawud, Book 21, Hadith 87 (Abu Dawud 3176)

Narrated 'Ali bin Abi Talib:

The Prophet (ﷺ) stood up for a funeral (to show respect) and thereafter he sat down.