Sahih al-Bukhari, Book 90, Hadith 22 (Bukhari 6717)

Narrated Ibn `Abbas:

The Prophet (ﷺ) said, "The one who takes back his gift is like a dog swallowing its own vomit, and we (believers) should not act according to this bad example."