It was narrated from Salim: That his father saw the Messenger of Allah, Abu Bakr and 'Umar, may Allah be pleased with them, walking in front of the Janazah.
The companions of the Prophet also followed his example and showed their respects by joining him in this procession. This teaches us that we should always strive to follow our beloved prophet’s example and show respect for those who have passed away by participating in their funerals or at least paying respects to them through prayer or other means.