Sayyiduna Ali bin Husayn (may Allah have mercy on him) narrates from Sayyiduna Ali (may Allah be pleased with him) concerning a man who bought a slave girl, had intercourse with her, and then discovered a defect in her. He said: She stays with him, and the seller pays the difference between (her value when) sound and (when) defective. If he has not had intercourse with her, he may return her.
It is mursal: Ali bin al-Husayn did not meet his grandfather Ali. It has also been narrated from Muslim bin Khalid, from Ja'far, from his father, from his grandfather, from Husayn bin Ali, from Ali, but that is not mahfuz (preserved).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 10745