From Sahih Muslim (Hadith 3833):
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
Reference: Muslim 3833