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.
tirmidhi:1627Bidhalik Ziyād b. Ayyūb > Yazīd b. Hārūn > al-Walīd b. Jamīl > al-Qāsim Abū ʿAbd al-Raḥman > Abū Umāmah

That the Messenger of Allah ﷺ said: "The most virtuous of charitable spending is the shade of a tent in the cause of Allah, or giving a servant in the cause of Allah, or a riding camel in the cause of Allah."  

[Abu 'Eisa said:] This Hadith is Hasan Gharib Sahih, and it is more correct to me than the narration of Mu'awiyah bin Salih.
الترمذي:١٦٢٧حَدَّثَنَا بِذَلِكَ زِيَادُ بْنُ أَيُّوبَ حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ أَخْبَرَنَا الْوَلِيدُ بْنُ جَمِيلٍ عَنِ الْقَاسِمِ أَبِي عَبْدِ الرَّحْمَنِ عَنْ أَبِي أُمَامَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ أَفْضَلُ الصَّدَقَاتِ ظِلُّ فُسْطَاطٍ فِي سَبِيلِ اللَّهِ وَمَنِيحَةُ خَادِمٍ فِي سَبِيلِ اللَّهِ أَوْ طَرُوقَةُ فَحْلٍ فِي سَبِيلِ اللَّهِ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ غَرِيبٌ وَهُوَ أَصَحُّ عِنْدِي مِنْ حَدِيثِ مُعَاوِيَةَ بْنِ صَالِحٍ

See similar narrations below:

Collected by Tirmidhī, Aḥmad, Ṭabarānī, Suyūṭī
tirmidhi:1626Muḥammad b. Rāfiʿ > Zayd b. Ḥubāb > Muʿāwiyah b. Ṣāliḥ > Kathīr b. al-Ḥārith > al-Qāsim Abū ʿAbd al-Raḥman > ʿAdī b. Ḥātim al-Ṭāʾī

That he asked the Messenger of Allah ﷺ, "Which charity is most virtuous?" He said, "The service of a worshipper in the cause of Allah, or providing the shade of tent, or mount in the cause of Allah."  

[Abu 'Eisa said:] This Hadith has been reported from Mu'awiyah bin Salih in Mursal form.And Zaid has been contradicted concerning part of its chain. He said: And Al-Walim bin Jamil has reported this Hadith from Al-Qasim Abu 'Abdur-Rahman, from Abu Umamah, from the Prophet ﷺ.
الترمذي:١٦٢٦حَدَّثَنَا مُحَمَّدُ بْنُ رَافِعٍ حَدَّثَنَا زَيْدُ بْنُ حُبَابٍ حَدَّثَنَا مُعَاوِيَةُ بْنُ صَالِحٍ عَنْ كَثِيرِ بْنِ الْحَارِثِ عَنِ الْقَاسِمِ أَبِي عَبْدِ الرَّحْمَنِ عَنْ عَدِيِّ بْنِ حَاتِمٍ الطَّائِيِّ

أَنَّهُ سَأَلَ رَسُولَ اللَّهِ ﷺ أَىُّ الصَّدَقَةِ أَفْضَلُ قَالَ خِدْمَةُ عَبْدٍ فِي سَبِيلِ اللَّهِ أَوْ ظِلُّ فُسْطَاطٍ أَوْ طَرُوقَةُ فَحْلٍ فِي سَبِيلِ اللَّهِ  

قَالَ أَبُو عِيسَى وَقَدْ رُوِيَ عَنْ مُعَاوِيَةَ بْنِ صَالِحٍ هَذَا الْحَدِيثُ مُرْسَلاً وَخُولِفَ زَيْدٌ فِي بَعْضِ إِسْنَادِهِ قَالَ وَرَوَى الْوَلِيدُ بْنُ جَمِيلٍ هَذَا الْحَدِيثَ عَنِ الْقَاسِمِ أَبِي عَبْدِ الرَّحْمَنِ عَنْ أَبِي أُمَامَةَ عَنِ النَّبِيِّ ﷺ
ahmad:22321ʿAbdullāh And Jadt Fī Kitāb Abū Bikhaṭ Yadih Waʾaẓun Annī Qad Samiʿtuh > from al-Ḥakam > al-Ḥakam b. Mūsá > Ismāʿīl b. ʿAyyāsh > Muṭṭariḥ b. Yazīd al-Kinānī > ʿUbaydullāh b. Zaḥr > ʿAlī b. Yazīd > al-Qāsim > Abū Umāmah

That he asked the Messenger of Allah ﷺ, "Which charity is most virtuous?" He said, "The service of a worshipper in the cause of Allah, or providing the shade of tent, or mount in the cause of Allah." (Using translation from Tirmidhī 1626)   

أحمد:٢٢٣٢١قَالَ عَبْدُ اللهِ وَجَدْتُ فِي كِتَابِ أَبِي بِخَطِّ يَدِهِ وَأَظُنُّ أَنِّي قَدْ سَمِعْتُهُ أَنَا مِنَ الْحَكَمِ حَدَّثَنَا الْحَكَمُ بْنُ مُوسَى حَدَّثَنَا إِسْمَاعِيلُ بْنُ عَيَّاشٍ عَنْ مُطَّرِحِ بْنِ يَزِيدَ الْكِنَانِيِّ عَنْ عُبَيْدِ اللهِ بْنِ زَحْرٍ عَنْ عَلِيِّ بْنِ يَزِيدَ عَنْ الْقَاسِمِ عَنْ أَبِي أُمَامَةَ

أَنَّ رَجُلًا سَأَلَ رَسُولَ اللهِ ﷺ أَيُّ الصَّدَقَةِ أَفْضَلُ؟ قَالَ ظِلُّ فُسْطَاطٍ فِي سَبِيلِ اللهِ أَوْ خِدْمَةُ خَادِمٍ فِي سَبِيلِ اللهِ أَوْ طَرُوقَةُ فَحْلٍ فِي سَبِيلِ اللهِ  

tabarani:7916Muḥammad b. Jābān > Maḥmūd b. Ghaylān > Yazīd b. Hārūn > al-Walīd b. Jamīl > al-Qāsim > Abū Umāmah

That he asked the Messenger of Allah ﷺ, "Which charity is most virtuous?" He said, "The service of a worshipper in the cause of Allah, or providing the shade of tent, or mount in the cause of Allah." (Using translation from Tirmidhī 1626)   

الطبراني:٧٩١٦حَدَّثَنَا مُحَمَّدُ بْنُ جَابَانَ ثنا مَحْمُودُ بْنُ غَيْلَانَ ثنا يَزِيدُ بْنُ هَارُونَ ثنا الْوَلِيدُ بْنُ جَمِيلٍ عَنِ الْقَاسِمِ عَنْ أَبِي أُمَامَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ أَفْضَلُ الصَّدَقَاتِ ظِلُّ فُسْطَاطٍ فِي سَبِيلِ اللهِ أَوْ طُرُوقَةُ فَحْلٍ فِي سَبِيلِ اللهِ  

suyuti:3779a

That the Messenger of Allah ﷺ said: "The most virtuous of charitable spending is the shade of a tent in the cause of Allah, or giving a servant in the cause of Allah, or a riding camel in the cause of Allah." (Using translation from Tirmidhī 1627)   

السيوطي:٣٧٧٩a

"أفضلُ الصدقاتِ: ظِلُّ فُسْطاطٍ في سبيل الله، أو مِنْحَةُ خادمٍ في سبيل الله، أو طَرُوقَةُ فَحْلَ في سبيل الله" .  

[حم] أحمد [ت] الترمذي حسن صحيح، غريب، [طب] الطبرانى في الكبير [ض] ضياء المقدسي في مختاره عن القاسم أبي عبد الرحمن، عن أبي أمامة، [ت] الترمذي [طب] الطبرانى في الكبير [ك] الحاكم في المستدرك عن القاسم أبى عبد الرحمن عن عدى بن حاتم، وقال: [ت] الترمذي الأولُ أَصَحُّ