It was narrated from Salim that his father said: “I saw the Prophet (ﷺ), Abu Bakr and ‘Umar walking ahead of the funeral (procession).”
It was narrated that Anas bin Malik said: “The Messenger of Allah (ﷺ), Abu Bakr, ‘Umar and ‘Uthman used to walk ahead of the funeral (procession).”
It was narrated from ‘Abdullah bin Mas’ud that the Messenger of Allah (ﷺ) said: ‘The funeral should be followed and should not follow. There should be no one with it who walks ahead of it.”