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."
Reference: Sunan an-Nasa'i 1948 In-book : Book 21, Hadith 132 English translation : Vol. 3, Book 21, Hadith 1950
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.