Sunan an-Nasa'i, Book 32, Hadith 7 (Nasa'i 3702)

It was narrated from Ibn 'Abbas that the Prophet said:

"The likeness of the one who gives a gift then takes it back, is that of a dog which vomits, then goes back to its vomit and eats it."