Sayyiduna Sahl bin Sa'd (may Allah be pleased with him) says that a woman came to the Prophet (peace and blessings be upon him). He mentioned the hadith, and in it is: A man from among the Companions of the Prophet (peace and blessings be upon him) stood up and said: O Messenger of Allah, if you have no need of her, then marry her to me. At its end it says that he (peace and blessings be upon him) said: "I have made you her owner in return for the Qur'an that you have (that is, what you know; teach it to her as well)."
(b) Sayyiduna Sahl bin Sa'd (may Allah be pleased with him), in this hadith narrated from the Prophet (peace and blessings be upon him), says that he (peace and blessings be upon him) said: "I have made you her owner in return for what you have of the Qur'an." Then he said: This is the hadith of Ibn Abi Hazim.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 13821