Sunan Ibn Majah, Book 15, Hadith 2 (Ibn Majah 2391)

'Abdullah bin 'Abbas narrated that the Messenger of Allah (ﷺ) said:

“The likeness of the one who gives charity then takes it back is that of a dog who vomits then goes back and eats its vomit.”