Sahih al-Bukhari 5029
Amr bin Aun narrated to us that Hammad (bin Zaid) told us. He narrated from Abu Hazim, Abu Hazim from Sahl bin Sa'd. He said: A woman came to the Prophet (saw) and said that she had dedicated herself to Allah and His Messenger (saw). He (saw) said: “I have no need of women now.” A man said: Marry her to me. He (saw) said: “Give her a garment.” He said: I do not have one. He (saw) said: “Give her something, even if only an iron ring.” Then he offered him (saw) (the same) excuse. He (saw) said: “Do you know some of the Qur’an by heart?” He said: Such and such (a Surah I know by heart). He (saw) said: “I have married you to her in return for those very (Surahs) which you know of the Qur’an by heart.”
AI-translated by Islam-Today
Book 21: The best among you are those who learn the Holy Qur’an and teach it