A woman offered herself in marriage to the Prophet ﷺ. A man said to him, "Messenger of Allah, marry her to me."The Prophet ﷺ asked, "What do you have?"The man replied, "I have nothing."The Prophet ﷺ said, "Go and find something, even if it is only an iron ring."The man went, then returned and said, "By Allah, I found nothing, not even an iron ring. But here is my lower garment, and she may have half of it."Sahl remarked, "He did not even have an upper garment."The Prophet ﷺ said, "What would she do with your lower garment? If you wore it, she would have nothing of it on her, and if she wore it, you would have nothing of it on you."So the man sat down. After he had sat for a long while, he got up to leave. The Prophet ﷺ saw him and called him over, or had him called, and asked him, "How much of the Quran do you know?"The man said, "I know such-and-such surah and such-and-such surah," listing them.The Prophet ﷺ said, "We have given her to you in marriage for what you know of the Quran."
أن امرأة عرضت نفسها على النبي ﷺ، فقال له رجل: يا رسول الله، زوجنيها، فقال: ما عندك؟ فقال: ما عندي شيء. قال: اذهب فالتمس ولو خاتما من حديد، فذهب ثم رجع، فقال: لا والله ما وجدت شيئا ولا خاتما من حديد، ولكن هذا إزاري ولها نصفه. قال سهل: وما له رداء. فقال النبي ﷺ: وما تصنع بإزارك؟ إن لبسته لم يكن عليها منه شيء، وإن لبسته لم يكن عليك منه شيء. فجلس الرجل حتى إذا طال مجلسه قام، فرآه النبي ﷺ فدعاه أو دعي له- فقال له: ماذا معك من القرآن؟ فقال: معي سورة كذا وسورة كذا -لسور- يعددها فقال النبي ﷺ أملكناكها بما معك من القرآن.
Bukhari related it in the Book of Marriage (5121), and Muslim in the Book of Marriage (1425), through the route of Abu Hazim, from Sahl bin Saad, who narrated it. The wording is Bukhari's. The name of the woman who offered herself was "Khawlah bint Hakeem," as will come later in the tafsir of the verse that follows it.