It wasnarrated 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." (JA)
English reference (JA): Vol. 1, Book 6, Hadith 1484 (JA)
Arabic reference (JA): Book 6, Hadith 1551 (JA)