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.”