סימן קנח סעיף ד
אִשָּׁה שֶׁבָּרוּר לָה שֶׁאֵינָהּ מְעֻבֶּרֶת וְטָבְלָה לְבַעְלָהּ, וּבְתוֹךְ אַרְבָּעִים יוֹם הִפִּילָה, אֵינָהּ חוֹשֶׁשֶׁת לְלֵדָה, כִּי אֵין הַוָּלָד נוֹצָר בְפָחוֹת מֵאַרְבָּעִים יוֹם, אֲבָל טְמֵאָה נִדָּה. וַאֲפִלוּ לֹא נִרְאָה דָם, מִסְּתָמָא הָיָה קְצָת דָּם, אֶלָּא שֶׁנֶּאֱבַד, כִּי אִי אֶפְשָׁר לִפְתִיחַת הָרֶחֶם בְּלֹא דָם.
If a woman is certain she has not conceived, and performed the rite of immersion, and within forty days had a miscarriage, she need not deem it a birth, for the embryo is not formed in less than forty days. But she is menstrually unclean, even if no blood was perceived, for presumably there was some blood which may have disappeared, as it is impossible for the womb to have opened without issuing blood.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)