Sunan an-Nasa'i, Book 26, Hadith 32 (Nasa'i 3233)

Narrated Ma'qil bin Yasar:

It was narrated that Ma'qil bin Yasar said: "A man came to the Messenger of Allah and said: 'I have found a woman who is from a good family and of good status, but she does not bear children, should I marry her?' He told him not to. Then he came to him a second time and he told him not to (marry her). Then he came to him a third time and he told him not to (marry her), then he said: 'Marry the one who is fertile and loving, for I will boast of your great numbers.'"