Sunan an Nasai
1942
Sahih+2

It was narrated that Al-Mughirah bin Shu,bah said:"The Messenger of Allah said: The riders should move behind the Janazah and the pedestrian may walk wherever he wishes, and the (funeral) prayer should be offered for a child

SahihAbu Ghuddah
SahihAl-Albani