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."