It was narrated from Al-Mughirah bin Shu'bah that:the Messenger of Allah said: "The rider should move behind the Janazah and the pedestrian may walk wherever he wishes, and the (funeral) prayer should be offered for a child
Hadith No. 1948
Sunan an Nasai
Gradings:
Abu Ghuddah:
Sahih
Al-Albani:
Sahih
Zubair Ali Zai:
Hasan