Language:
كتاب النكاح
67  
Wedlock, Marriage (Nikaah)
(45)
Chapter: If the suitor says, "Marry me to so-and-so," and the guardian says, "I have married her to you for such Mahr"
(44)
بَابُ إِذَا قَالَ الْخَاطِبُ لِلْوَلِيِّ زَوِّجْنِي فُلاَنَةَ. فَقَالَ قَدْ زَوَّجْتُكَ بِكَذَا وَكَذَا. جَازَ النِّكَاحُ، وَإِنْ لَمْ يَقُلْ لِلزَّوْجِ أَرَضِيتَ أَوْ قَبِلْتَ
Sahih al-Bukhari 5141

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 : Vol. 7, Book 62, Hadith 72
  (deprecated numbering scheme)