Sunnah.com reference : Book 8, Hadith 13English translation : Book 8, Hadith 986Arabic reference : Book 8, Hadith 979
Narrated Sahl bin Sa'd as-Sa'idi (RA):
A woman came to Allah's Messenger (ﷺ) and said, "O Allah's Messenger, I came to offer myself to you (in marriage)." Allah's Messenger (ﷺ) looked her up and down (carefully), and then Allah's Messenger (ﷺ) lowed his head. When the woman saw that he had not made any decision regarding her she sat down. A man of his companions then stood up and said, "O Allah's Messenger, if you have no need for her, marry her to me." He asked, "Do you have anything (to give her as dowry)?" He replied, "No, I swear by Allah, O Allah's Messenger." He thereupon said, "Go to your family and see if you can find something." He went and then returned and said, "No, I swear by Allah I found nothing." Allah's Messenger (ﷺ) then said, "Look for something, even if it should be an iron ring." He went and then returned and said, "No, I swear by Allah, O Allah's Messenger, not even an iron ring; but I have onl this lower garment of mine - [Sahl said, 'He had no upper garment'] - and I shall give her half of it." Allah's Messenger (ﷺ) then said, "What will she do with your lower garment? For if you wear it, there would be nothing of it on her, and if she wears it, there would be nothing of it on you." The man then sat down and when he had sit for a long time he stood up and Allah's Messenger (ﷺ) saw him departing, so he commanded him and he was called back. When he came back, he said, "What do you have (i.e. memorized) from the Qur'an?" He replied, "I have Surat such and such and Surat such and such," he counted them. He then asked "Can you recited them by heart?" He replied, "Yes." He said, "Go, for I have given her to you in marriage for the part of the Qur'an which you know."

[Agreed upon; the wording is Muslim's].

Another narration has: "Go for I have given her to you in marriage, so teach her some of Qur'an."

A narration by al-Bukhari has: "I have married her to you for the part of the Qur'an which you know."
وَعَنْ سَهْلِ بْنِ سَعْدٍ اَلسَّاعِدِيِّ ‏- رَضِيَ اَللَّهُ عَنْهُمَا‏- قَالَ : { جَاءَتِ امْرَأَةٌ إِلَى رَسُولِ اَللَّهِ ‏- صلى الله عليه وسلم ‏-فَقَالَتْ : يَا رَسُولَ اَللَّهِ ! جِئْتُ أَهَبُ لَكَ نَفْسِي , فَنَظَرَ إِلَيْهَا رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-فَصَعَّدَ اَلنَّظَرَ فِيهَا , وَصَوَّبَهُ , ثُمَّ طَأْطَأَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-رَأْسَهُ , فَلَمَّا رَأَتْ اَلْمَرْأَةُ أَنَّهُ لَمْ يَقْضِ فِيهَا شَيْئًا  1‏ جَلَسَتْ , فَقَامَ رَجُلٌ مِنْ أَصْحَابِهِ .‏ 
فَقَالَ : يَا رَسُولَ اَللَّهِ ! إِنْ لَمْ يَكُنْ لَكَ بِهَا حَاجَةٌ فَزَوِّجْنِيهَا .‏ 
قَالَ : " فَهَلْ عِنْدكَ مِنْ شَيْءٍ ? " .‏ 
فَقَالَ : لَا , وَاَللَّهِ يَا رَسُولَ اَللَّهِ .‏ 
فَقَالَ : " اِذْهَبْ إِلَى أَهْلِكَ , فَانْظُرْ هَلْ تَجِدُ شَيْئًا ? " فَذَهَبَ , ثُمَّ رَجَعَ ? 
فَقَالَ : لَا , وَاَللَّهِ يَا رَسُولَ اَللَّهِ، مَا وَجَدْتُ شَيْئًا.‏ 
فَقَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-" انْظُرْ وَلَوْ خَاتَمًا مِنْ حَدِيدٍ "، فَذَهَبَ، ثُمَّ رَجَعَ.‏ 
فَقَالَ : لَا وَاَللَّهِ , يَا رَسُولَ اَللَّهِ , وَلَا خَاتَمًا مِنْ حَدِيدٍ , وَلَكِنْ هَذَا إِزَارِي ‏- قَالَ سَهْلٌ : مَالُهُ رِدَاءٌ ‏- فَلَهَا نِصْفُهُ .‏ 
فَقَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-" مَا تَصْنَعُ بِإِزَارِكَ ? إِنْ لَبِسْتَهُ لَمْ يَكُنْ عَلَيْهَا مِنْهُ شَيْءٌ، وَإِنْ لَبِسَتْهُ لَمْ يَكُنْ عَلَيْكَ شَيْءٌ " فَجَلَسَ اَلرَّجُلُ , وَحَتَّى إِذَا طَالَ مَجْلِسُهُ قَامَ ; فَرَآهُ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-مُوَلِّيًا , فَأَمَرَ بِهِ , فَدُعِيَ لَهُ , فَلَمَّا جَاءَ .‏ 
قَالَ : " مَاذَا مَعَكَ مِنَ الْقُرْآنِ ? " .‏ 
قَالَ : مَعِي سُورَةُ كَذَا , وَسُورَةُ كَذَا , عَدَّدَهَا .‏ 
فَقَالَ : " تَقْرَؤُهُنَّ عَنْ ظَهْرِ قَلْبِكَ ? " .‏ 
قَالَ : نَعَمْ , قَالَ : "اِذْهَبْ , فَقَدَ مَلَّكْتُكَهَا بِمَا مَعَكَ مِنَ الْقُرْآنِ } مُتَّفَقٌ عَلَيْهِ , وَاللَّفْظُ لِمُسْلِمٍ 2‏ .‏ 
وَفِي رِوَايَةٍ لَهُ : { اِنْطَلِقْ , فَقَدْ زَوَّجْتُكَهَا , فَعَلِّمْهَا مِنَ الْقُرْآنِ }   3‏ .‏ 
وَفِي رِوَايَةٍ لِلْبُخَارِيِّ : { أَمْكَنَّاكَهَا  4‏ بِمَا مَعَكَ مِنَ الْقُرْآنِ }   5‏ .‏‏1 ‏- ووقع في " أ " : " بشيء ".‏
‏2 ‏- صحيح .‏ رواه البخاري ( 5030 )‏ و ( 5087 )‏ ، ومسلم ( 1425 )‏ ( 76 )‏ , واللفظ متفق عليه ، وليس كما فرق الحافظ رحمه الله.‏
‏3 ‏- مسلم ( 1425 )‏ ( 77 )‏.‏
‏4 ‏- كذا في " الأصلين " وفي المطبوع من " البلوغ " وشرحه .‏ وانظر التعليق التالي.
‏‏5 ‏- البخاري برواية أبي ذر ، كما في " اليونينية " ( 7 / 17 )‏ وأما باقي روايات البخاري فهي بلفظ : "أملكناكها".‏