Abdullah bin Umar reported,

Umar gave a horse of his to be used in the cause of Allah, handing it over to the Messenger of Allah ﷺ so that it could be given to a man to ride. Later, Umar was told that the man had put it up for sale, so he asked the Messenger of Allah ﷺ whether he could buy it back.He replied, "Do not buy it, and do not take back what you have given in charity."

Bukhari 2775

Sahih

حدثنا مسدد حدثنا يحيى حدثنا عبيد الله قال حدثني نافع

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

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

البخاري 2775صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Bequests
Chapter
Endowment of animals, horses, goods, and currency
Numbering
Darussalam 2775
Bukhari 2775