Al-Mughirah ibn Shu’bah reported: The Messenger of Allah, peace and blessings be upon him, “The rider should travel behind the funeral procession, and those on foot should walk behind it, in front, to the right or to the left, near to it. The funeral prayer should be offered over the miscarried fetus, and supplications for forgiveness and mercy should be made for the parents.”
Source: Sunan Abī Dāwūd 3180
Grade: Sahih (authentic) according to Al-Arna’ut
عَنْ الْمُغِيرَةِ بْنِ شُعْبَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الرَّاكِبُ يَسِيرُ خَلْفَ الْجَنَازَةِ وَالْمَاشِي يَمْشِي خَلْفَهَا وَأَمَامَهَا وَعَنْ يَمِينِهَا وَعَنْ يَسَارِهَا قَرِيبًا مِنْهَا وَالسِّقْطُ يُصَلَّى عَلَيْهِ وَيُدْعَى لِوَالِدَيْهِ بِالْمَغْفِرَةِ وَالرَّحْمَةِ
3180 سنن أبي داود كتاب الجنائز باب المشي أمام الجنازة
3180 المحدث شعيب الأرناؤوط خلاصة حكم المحدث إسناده صحيح في تخريج سنن أبي داود