Sahl bin Saad reported,

A woman came to the Prophet ﷺ and said that she had given herself to Allah and His Messenger ﷺ.He replied, "I have no need for women."A man then said, "Marry her to me."The Prophet ﷺ said, "Give her a garment."The man said, "I have none."He said, "Give her something, even an iron ring."The man made excuses that he had nothing.The Prophet ﷺ asked, "How much of the Quran do you know?"The man replied, "Such and such."He said, "I have married her to you for what you know of the Quran."

Bukhari 5029

Sahih

حدثنا عمرو بن عون حدثنا حماد عن أبي حازم

عن سهل بن سعد قال

أتت النبي ﷺ امرأة فقالت إنها قد وهبت نفسها لله ولرسوله ﷺ فقال ما لي في النساء من حاجة فقال رجل زوجنيها قال أعطها ثوبا قال لا أجد قال أعطها ولو خاتما من حديد فاعتل له فقال ما معك من القرآن قال كذا وكذا قال فقد زوجتكها بما معك من القرآن

البخاري 5029صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of the Quran
Chapter
Best of you is the one who learns the Quran and teaches it
Numbering
Darussalam 5029
Bukhari 5029