Sahih Muslim, Book 21, Hadith 33 (Muslim 3796)

Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:

He who buys a goat having its udder tied up has two courses left for him. He may retain it, and if he desires may return it along with a sa' of dates and not wheat.