A man came to the Prophet ﷺ and said: I have found a woman of rank and beauty, but she does not give birth to children. Should I marry her? He said: No. He came again to him, but he prohibited him. He came to him third time, and he (the Prophet) said: Marry women who are loving and very prolific, for I shall outnumber the peoples by you. (Using translation from Abū Dāʾūd 2050)
جَاءَ رَجُلٌ إِلَى رَسُولِ اللهِ ﷺ فَقَالَ يَا رَسُولَ اللهِ إِنِّي أَصَبْتُ امْرَأَةً ذَاتَ حَسَبٍ وَمَنْصِبٍ وَمَالٍ إِلَّا أَنَّهَا لَا تَلِدُ أَفَأَتَزَوَّجُ بِهَا؟ فَنَهَاهُ رَسُولُ اللهِ ﷺ ثُمَّ أَتَاهُ الثَّانِيَةَ فَقَالَ لَهُ مِثْلَ ذَلِكَ فَنَهَاهُ ثُمَّ أَتَاهُ الثَّالِثَةَ فَقَالَ لَهُ مِثْلَ ذَلِكَ فَقَالَ رَسُولُ اللهِ ﷺ تَزَوَّجُوا الْوَلُودَ الْوَدُودَ فَإِنِّي مُكَاثِرٌ بِكُمُ الْأُمَمَ