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.
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ إِنَّمَا مَثَلُ الَّذِي يَتَصَدَّقُ بِصَدَقَةٍ ثُمَّ يَعُودُ فِي صَدَقَتِهِ كَمَثَلِ الْكَلْبِ يَقِيءُ ثُمَّ يَأْكُلُ قَيْأَهُ