סימן קנח סעיף ב
יֵשׁ אוֹמְרִים, שֶׁצָּרִיךְ לִפְרוֹשׁ מֵאִשְׁתּוֹ לֵיל אַרְבָּעִים וְאֶחָד לְזָכָר וְלֵיל שְׁמוֹנִים וְאֶחָד לִנְקֵבָה, מִפְּנֵי שֶׁאָז אִכָּא חֲשָׁשָׁא, שֶׁמָּא תִרְאֶה דָם כְּמוֹ בִּשִׁעַת וֶסְתָּהּ, וְיֵשׁ חוֹלְקִין. וּבַעַל נֶפֶשׁ יָחוּשׁ לְעַצְמוֹ. וְאִם הִפִּילָה סָפֵק זָכָר סָפֵק נְקֵבָה, יִפְרוֹשׁ לֵיל אַרְבָּעִים וְאֶחָד וְלֵיל שְׁמוֹנִים וְאֶחָד.
Some authorities maintain that you must separate from your wife the night of the forty-first day after having given birth to a male, and the night of the eighty-first day after having given birth to a female; for then there is the likelihood2Behag. she may perceive the flow the same as during her menses. Other authorities differ, but a scrupulous person should be strict about it. If she miscarried, and there is doubt if the fetus is male or female, you should separate from her the night of the forty-first day and the night of the eighty-first day.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)