The Book of Gifts (Kitab Al-Hibat)

Muslim :: Book 12 : Hadith 3952

Ibn 'Umar reported that 'Umar b. al-Khattib (Allah be pleased with him) donated a horse in the path of Allah and (later on) he found it being sold, and he decided to buy that. He asked the Messenger of Allah (may peace be upon him) about it. whereupon he (the Holy prophet) said: Don't buy that and do not get back what you gave in charity.

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