Jami` at-Tirmidhi, Book 31, Hadith 8 (Tirmidhi 2199)

Ibn 'Umar narrated that the Messenger of Allah (S.A.W)said:

"The parable of the one who gives a gift, and then takes it back, is that of a dog who eats until he is full, and vomits, then he returns to his vomit." There are narrations on this topic from Ibn 'Abbas and 'Abdullah bin 'Amr.