The Book of Gifts (Kitab Al-Hibat)

Muslim :: Book 12 : Hadith 3954

Salim reported from Ibn Umar (Allah be pleased with them) that 'Umar donated a horse in the path of Allah and then found it being sold, and he decided to buy that. He asked Allah's Apostle (may peace be upon him) about it, whereupon Allah's Messenger (may peace be upon him) said: Umar, do not get back what you gave as charity.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star