I gave a horse to be used in Allah's Cause, but later on I saw it being sold. I asked the Prophet (ﷺ) whether I could buy it. He said, "Don't buy it and don't take back your gift of charity."
Sahih al-Bukhari Book 56, Hadith 179