The Messenger of Allah ﷺ, Abu Bakr, and Umar used to walk in front of the funeral bier, and so did the caliphs after them, and Abdullah bin Umar as well.
حدثني يحيى عن مالك
أن رسول الله ﷺ وأبا بكر وعمر كانوا يمشون أمام الجنازة والخلفاء هلم جرا وعبد الله بن عمر