That the Prophet (ﷺ) said: "Whoever purchased an animal that has not been milked, then he the choice when he milks it, if he wishes he may return it, returning a Sa' of dried dates along with it."

There are narration on this topic from Anas, and a man from the Companions of the Prophet (ﷺ).
Jami` at-Tirmidhi Book 14, Hadith 51