(44) بَابُ إِذَا قَالَ الْخَاطِبُ لِلْوَلِيِّ زَوِّجْنِي فُلاَنَةَ. فَقَالَ قَدْ زَوَّجْتُكَ بِكَذَا وَكَذَا. جَازَ النِّكَاحُ، وَإِنْ لَمْ يَقُلْ لِلزَّوْجِ أَرَضِيتَ أَوْ قَبِلْتَ
Narrated Sahl:
A woman came to the Prophet,, and presented herself to him (for marriage). He said, "I am not in need of women these days." Then a man said, "O Allah's Messenger (ﷺ)! Marry her to me." The Prophet (ﷺ) asked him, "What have you got?" He said, "I have got nothing." The Prophet (ﷺ) said, "Give her something, even an iron ring." He said, "I have got nothing." The Prophet (ﷺ) asked (him), "How much of the Qur'an do you know (by heart)?" He said, "So much and so much." The Prophet (ﷺ) said, "I have married her to you for what you know of the Qur'an."
Reference: Sahih al-Bukhari 5141
In-book reference: Book 67, Hadith 77
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 7, Book 62, Hadith 72