Abdullah bin Umar reported,

Umar bin Khattab once gave a horse as a contribution in the cause of Allah. Later he found it being offered for sale and wanted to buy it back. He asked the Messenger of Allah ﷺ about it, and the Prophet said, "Do not buy it, and do not take back what you have given in charity."

Bukhari 2971

Sahih

حدثنا إسماعيل قال حدثني مالك عن نافع

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

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

البخاري 2971صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Jihad and expeditions
Chapter
Rewards for substitutes and mounts in the cause of Allah
Numbering
Darussalam 2971
Bukhari 2971