It was narrated that 'Ali (رضي الله عنه) said: The Messenger of Allah ﷺ stood up for funerals, so we stood up; then he sat down, so we sat down.
This hadith also teaches us about respecting our elders and those who have gone before us; even if we do not know them personally, we can still show them respect through our actions such as standing up when they pass by or speaking kindly about them even after they are gone. It is important to remember that everyone deserves respect regardless of whether or not they are alive or dead; this hadith serves as a reminder of this fact.