Abdullah bin Umar reported,

He married a woman and found her to have grey hair, so he divorced her. He said, "A reed mat in the house is better than a woman who cannot bear children. By Allah, I do not approach you out of desire, but I heard the Messenger of Allah ﷺ say, 'Marry the loving and fertile, for I will boast of your numbers before the nations on the Day of Resurrection.'"

Azami 6196

Sahih

عن ابن عمر

أنه تزوج امرأة فأصابها شمطاء فطلقها. وقال: حصير في بيت خير من امرأة لا تلد. والله ما أقربكن شهوة، ولكني سمعت رسول الله ﷺ يقول: تزوجوا الودود الولود، فإني مكاثر بكم الأمم يوم القيامة.

الأعظمي 6196صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Marriage and its conditions
Section
Encouraging the pursuit of children through marriage, and urging marriage to the affectionate and fertile woman
Numbering
Jami al-Kamil 6196 (2nd edition)
Azami 6196