Umar bin Khattab reported,

I gave a horse as a charitable contribution in the cause of Allah. Later I saw it being sold, so I asked the Messenger of Allah ﷺ about it.He said, "Do not buy it, and do not take back your charity."

Bukhari 2636

Sahih

حدثنا الحميدي أخبرنا سفيان قال سمعت مالكا يسأل زيد بن أسلم قال سمعت أبي يقول قال

عمر رضي الله عنه

حملت على فرس في سبيل الله فرأيته يباع فسألت رسول الله ﷺ فقال لا تشتره ولا تعد في صدقتك

البخاري 2636صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Gifts, their virtue, and encouragement to give them
Chapter
If a man gives another a horse, it is like a lifetime gift and charity
Numbering
Darussalam 2636
Bukhari 2636