Sahih Muslim | Book 10 | Hadith Number 3634

Narrated by Abu Huraira (Allah be pleased with him)
Abu Huraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: He who bought a goat having its udder tied up should go back with it,

milk it, and, if he is satisfied with its milk, he should repair it, otherwise he should return it along with a sa' of dates.