´Al-Mughirah bin Shu'bah narrated that:` The Prophet said: "The rider is to be behind the funeral (procession), and the walker where he wishes, and the child should be prayed over."
Hadith Referenceسنن ترمذي / كتاب الجنائز عن رسول الله صلى الله عليه وسلم / 1031
Hadith Gradingالألبانی:صحيح، ابن ماجة (1507) | زبیر علی زئی:إسناده صحيح, مشكوة المصابيح (1667)