It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Holy Prophet (peace and blessings of Allah be upon him) said: Whoever buys a she-camel or a goat whose teats have been tied (to deceive the buyer), then he has the choice of two options, whichever is better for him: either he keeps the animal with himself (and settles the matter), or he returns the animal to the owner and gives a vessel of wheat along with it.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 7523
Hadith Gradingحکم دارالسلام:حديث صحيح، خ: 2151، م: 1524، إسناده متصل من جهة محمد، ومنقطع من جهة خلاس، فإنه يسمع من أبي هريرة.