It was narrated from Ibn 'Umar and Ibn 'Abbas, who attributed the Hadith to the Prophet:
It is not permissible for a man to give a gift and then take it back except a father taking back what he gave to his son. The likeness of the one who gives a gift then takes it back is that of the dog which eats until it is full, then it vomits, and goes back to its vomit.