Ubaydullah bin Muslim al-Hadrami (may Allah have mercy on him) narrates from Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him) that he said: I heard the Messenger of Allah (peace and blessings be upon him) say: "There is no Muslim man and woman who lose three children but that Allah, by the grace of His mercy, admits their parents into Paradise." I said: What if they were two? He (peace and blessings be upon him) said: "And two as well." I said: What if it were one? He (peace and blessings be upon him) said: "And one as well." Then he said: "By the One in whose hand is my soul, the miscarried child will drag its mother by its umbilical cord into Paradise, if she counts it (as a loss for the sake of Allah's reward)."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17436