Sahih al-Bukhari, Book 40, Hadith 10 (In-Book) ⓘ
Narrated Sahl bin Sad: A woman came to Allah's Messenger and said, "O Allah's Messenger! I want to give up myself to you." A man said, "Marry her to me." The Prophet said, "We agree to marry her to you with what you know of the Qur'an by heart."
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنْ أَبِي حَازِمٍ، عَنْ سَهْلِ بْنِ سَعْدٍ، قَالَ جَاءَتِ امْرَأَةٌ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَتْ يَا رَسُولَ اللَّهِ إِنِّي قَدْ وَهَبْتُ لَكَ مِنْ نَفْسِي. فَقَالَ رَجُلٌ زَوِّجْنِيهَا. قَالَ " قَدْ زَوَّجْنَاكَهَا بِمَا مَعَكَ مِنَ الْقُرْآنِ " .
also referenced under: Hadith 2310 (DarusSalam) & Volume 3, Book 38, Hadith 505 (USC-MSA)