Language:
كتاب الجهاد والسير
56  
Fighting for the Cause of Allah (Jihaad)
(137)
Chapter: If someone gives his horse for Allah's Cause and then he sees it being sold
(137)
باب إِذَا حَمَلَ عَلَى فَرَسٍ فَرَآهَا تُبَاعُ
Sahih al-Bukhari 3003

Narrated Aslam:

I heard `Umar bin Al-Khattab saying, "I gave a horse to be ridden in Allah's Cause and the person who got it intended to sell it or neglected it. So, I wanted to buy it as I thought he would sell it cheap. I consulted the Prophet (ﷺ) who said, "Do not buy it even if for one Dirham, because he who takes back his gift is like a dog swallowing its vomit."

حَدَّثَنَا إِسْمَاعِيلُ، حَدَّثَنِي مَالِكٌ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ أَبِيهِ، قَالَ سَمِعْتُ عُمَرَ بْنَ الْخَطَّابِ ـ رضى الله عنه ـ يَقُولُ حَمَلْتُ عَلَى فَرَسٍ فِي سَبِيلِ اللَّهِ فَابْتَاعَهُ ـ أَوْ فَأَضَاعَهُ ـ الَّذِي كَانَ عِنْدَهُ، فَأَرَدْتُ أَنْ أَشْتَرِيَهُ، وَظَنَنْتُ أَنَّهُ بَائِعُهُ بِرُخْصٍ، فَسَأَلْتُ النَّبِيَّ صلى الله عليه وسلم فَقَالَ ‏ "‏ لاَ تَشْتَرِهِ وَإِنْ بِدِرْهَمٍ، فَإِنَّ الْعَائِدَ فِي هِبَتِهِ كَالْكَلْبِ يَعُودُ فِي قَيْئِهِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 3003
In-book reference : Book 56, Hadith 212
USC-MSA web (English) reference : Vol. 4, Book 52, Hadith 247
  (deprecated numbering scheme)