“The Messenger of Allah (ﷺ), Abu Bakr, ‘Umar and ‘Uthman used to walk ahead of the funeral (procession).”
Sunan Ibn Majah Book 6, Hadith 51