The Prophet ﷺ said, "The rider follows behind the funeral procession, while the one on foot walks in front of it, close to its right or its left. The miscarried child is prayed over, and forgiveness and mercy are sought for its parents."
حدثنا هاشم بن القاسم حدثنا المبارك قال أخبرني زياد بن جبير أخبرني أبي
عن النبي ﷺ قال الراكب خلف الجنازة والماشي أمامها قريبا عن يمينها أو عن يسارها والسقط يصلى عليه ويدعى لوالديه بالمغفرة والرحمة