It is narrated from Sayyiduna Mughirah bin Shu'bah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "The funeral prayer is offered over a miscarried child (a child who dies at birth), and supplication is made for its parents for well-being and mercy."
Imam al-Tabarani (may Allah have mercy on him) said: Sufyan did not narrate it as marfu' (attributed to the Prophet).
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 18167