סימן קמה סעיף ג
אַף עַל פִּי שֶׁקִּיֵם מִצְוַת פְּרִיָה וּרְבִיָה, אָסוּר לוֹ לַעֲמֹד בְּלֹא אִשָּׁה. וְצָרִיךְ שֶיִשָּׂא אִשָּׁה בַּת בָּנִים אִם אֶפְשַׁר לוֹ. אַךְ אִם הוּא מֵבִין בְּעַצְמוֹ שֶׁאֵינוֹ רָאוּי עוֹד לְהוֹלִיד, טוֹב לוֹ יוֹתֵר לִשָּׂא אִשָּׁה שֶׁאֵינָהּ בַּת בָּנִים, וְכֵן אִם יֶשׁ לוֹ בָּנִים הַרְבֵּה, וּמִתְיָרֵא שֶׁאִם יִשָׂא אִשָּׁה בַּת בָּנִים, יָבוֹאוּ קְטָטוֹת וּמְרִיבוֹת בֵּין הַבָּנִים וּבֵין אִשְׁתּוֹ, מֻתָּר לוֹ לִשָׂא אִשָּׁה שֶׁאֵינָהּ בַּת בָּנִים. אֲבָל אָסוּר לוֹ לֵישֵׁב בְּלֹא אִשָׁה מִשׁוּם חֲשָׁשָׁא זֹאת.
Even though you have fulfilled the mitzvah of propagation, you are forbidden to remain without a wife. You should marry a woman capable of bearing children if it is possible. But if you are aware that you are unable to have children, it is preferable that you marry a woman that is not able to bear children. Similarly, if you have many children, and you fear if you marry a woman capable of bearing children there will be bickering and quarrels between your children and your wife, you are permitted to marry a woman who is not capable of bearing children, but it is forbidden to remain unmarried because of this concern.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)