Umar bin Khattab reported,

He once gave a horse to a man to ride in the cause of Allah. Later he found the horse with its owner, who had neglected it, and since the man had little wealth, he wished to buy it back. He came to the Messenger of Allah ﷺ and mentioned this to him.The Prophet ﷺ said, "Do not buy it back, even if he offers it to you for a single dirham, for the one who takes back his charity is like a dog that returns to its vomit."

Muslim 4165

Sahih

حدثني أمية بن بسطام حدثنا يزيد يعني ابن زريع حدثنا روح وهو ابن القاسم عن زيد بن أسلم عن أبيه

عن عمر

أنه حمل على فرس في سبيل الله فوجده عند صاحبه وقد أضاعه وكان قليل المال فأراد أن يشتريه فأتى رسول الله ﷺ فذكر ذلك له فقال لا تشتره وإن أعطيته بدرهم فإن مثل العائد في صدقته كمثل الكلب يعود في قيئه

مسلم 4165صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Gifts
Chapter
Dislike of a person buying back what he gave in charity from the one he gave it to
Numbering
Darussalam 4165
Muslim 4165