Salim reported from Ibn Umar (RA) that Umar donated a horse in the path of Allah and then found it being sold, and he decided to buy that. He asked Allahs Apostle ﷺ about it, whereupon Allahs Messenger ﷺ said: Umar, do not get back what you gave as charity.