He used to relate that Umar bin Khattab gave a horse in charity for the cause of Allah, then later found it being sold. He wanted to buy it back, so he went to the Prophet ﷺ to seek his permission.The Prophet ﷺ said, "Do not take back what you have given in charity."Because of this, Ibn Umar would never reclaim by purchase anything he had given in charity, but would instead give it again as charity.
حدثنا يحيى بن بكير حدثنا الليث عن عقيل عن ابن شهاب عن سالم أن
كان يحدث أن عمر بن الخطاب تصدق بفرس في سبيل الله فوجده يباع فأراد أن يشتريه ثم أتى النبي ﷺ فاستأمره فقال لا تعد في صدقتك فبذلك كان ابن عمر رضي الله عنهما لا يترك أن يبتاع شيئا تصدق به إلا جعله صدقة