I heard Messenger of Allah ﷺ say: The similitude of one who gives a charity and then gets it back is like that of a dog which vomits and then eats its vomit. (Using translation from Muslim 1622d)
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ «إِنَّمَا مَثَلُ الَّذِي يَتَصَدَّقُ ثُمَّ يَعُودُ فِي صَدَقَتِهِ كَمَثَلِ الْكَلْبِ يَقِيءُ ثُمَّ يَأْكُلُ قَيْأَهُ»