´It was narrated that Al-Mughirah bin Shu'bah said:` "The Messenger of Allah said: "The rider should travel behind the Janazah and the pedestrian may travel wherever he wishes, and the (funeral) prayer should be offered for a child."'
Hadith ReferenceSunan an-Nasa'i / The Book of Funerals / Hadith: 1945
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:إسناده حسن