That the Messenger of Allah (ﷺ) said: "Ours is not a bad example: The one who takes back his gift is like the dog who takes back his vomit."

On this topic, there is the narration from Ibn 'Umar from the Prophet (ﷺ) that he said: "It is not lawful for anyone that has given a gift to take it back, except for a father who gives something to his son."
Jami` at-Tirmidhi Book 14, Hadith 100