Sayyiduna Mughirah bin Shu'bah (may Allah be pleased with him) says: I heard the Messenger of Allah (peace and blessings be upon him) saying: "The rider goes behind the funeral and the one on foot walks close to it, and the funeral prayer is offered over a child."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6781