"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.
Jami` at-Tirmidhi Book 31, Hadith 8