(21) باب خَيْرُكُمْ مَنْ تَعَلَّمَ الْقُرْآنَ وَعَلَّمَهُ
Narrated Sahl bin Sa`d:
A lady came to the Prophet (ﷺ) and declared that she had decided to offer herself to Allah and His Apostle. The Prophet (ﷺ) said, "I am not in need of women." A man said (to the Prophet) "Please marry her to me." The Prophet (ﷺ) said (to him), "Give her a garment." The man said, "I cannot afford it." The Prophet said, "Give her anything, even if it were an iron ring." The man apologized again. The Prophet then asked him, "What do you know by heart of the Qur'an?" He replied, "I know such-andsuch portion of the Qur'an (by heart)." The Prophet (ﷺ) said, "Then I marry her to you for that much of the Qur'an which you know by heart."
Reference: Sahih al-Bukhari 5029
In-book reference: Book 66, Hadith 51
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 6, Book 61, Hadith 547