It is narrated from Abu Huraira (may Allah be pleased with him) that the Prophet (peace be upon him) said: "Do not withhold the milk of camels and goats, and if someone buys an animal whose milk has been withheld, then after milking it, he has the option: if he likes it, he may keep it, and if he dislikes it, he may return it along with one sa’ of dates."
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1381
Hadith Takhrijاخرجه البخارى البيوع، باب النهى للباع أن لا يحفل الابل والبقر والغنم وكل محفلة (2150) ومسلم ، البيوع، باب تحريم بيع الرجل على بيع اخيه، وسومه ...... الخ (1515)۔
It is narrated from Abu Huraira (may Allah be pleased with him) that he stated: The Messenger of Allah (peace and blessings be upon him) said: "Do not withhold the milk of camels and goats, and whoever buys an animal whose milk has been withheld, he has the option, after milking it, if he likes it he may keep it, and if he dislikes it he may return it along with one sa’ of dates."
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1382
Hadith Takhrijصحيح اخرجه النسائي، البيوع، باب النهي عن المصراة وهو ان يربط اخلاف الناقة او الشاة...... الخ (4492) - واحمد: (2/ 242)۔
From another chain, it is narrated from Abu Hurairah, may Allah be pleased with him, from the Prophet ﷺ, similar to the previous hadith. However, in this version, these words are present: He said, "Return it with a sa' of dates, not with wheat."
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1383
Hadith Takhrijاخرجه مسلم البيوع، باب حكم بيع المصراة (1524)۔