Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:7634ʿAlī b. Aḥmad b. ʿAbdān > Aḥmad b. ʿUbayd al-Ṣaffār > Aḥmad b. Ibrāhīm b. Milḥān > Yaḥyá b. Bukayr > al-Layth > ʿUqayl > Ibn Shihāb > Sālim b. ʿAbdullāh

[Machine] That Umar gave a horse in the cause of Allah as charity, but then he found it being sold. So, he wanted to buy it back. He then went to the Messenger of Allah ﷺ and sought his guidance in this matter. The Messenger of Allah ﷺ told him not to count it as part of his charity. From that point on, Ibn Umar used to refrain from buying anything that he had given as charity or used for a good cause, except that he would consider it as an act of charity.  

البيهقي:٧٦٣٤أَخْبَرَنَا عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ أنبأ أَحْمَدُ بْنُ عُبَيْدٍ الصَّفَّارُ ثنا أَحْمَدُ بْنُ إِبْرَاهِيمَ بْنِ مِلْحَانَ ثنا يَحْيَى بْنُ بُكَيْرٍ ثنا اللَّيْثُ حَدَّثَنِي عُقَيْلٌ عَنِ ابْنِ شِهَابٍ عَنْ سَالِمِ بْنِ عَبْدِ اللهِ أَنَّ عَبْدَ اللهِ بْنَ عُمَرَ كَانَ يُحَدِّثُ

أَنَّ عُمَرَ تَصَدَّقَ بِفَرَسٍ فِي سَبِيلِ اللهِ فَوَجَدَهُ يُبَاعُ بَعْدَ ذَلِكَ فَأَرَادَ أَنْ يَشْتَرِيَهُ ثُمَّ أَتَى رَسُولَ اللهِ ﷺ فَاسْتَأْمَرَهُ فِي ذَلِكَ فَقَالَ لَهُ رَسُولُ اللهِ ﷺ لَا تَعُدْ فِي صَدَقَتِكَ فَبِذَلِكَ كَانَ ابْنُ عُمَرَ يَتْرُكُ أَنْ يَبْتَاعَ شَيْئًا تَصَدَّقَ بِهِ أَوْ بَرَّ بِهِ إِلَّا جَعَلَهُ صَدَقَةً  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنِ ابْنِ بُكَيْرٍ وَأَخْرَجَهُ مُسْلِمٌ مِنْ حَدِيثِ مَعْمَرٍ عَنِ ابْنِ شِهَابٍ