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:2482Muḥammad b. Ḥumayd al-Rāzī > Zāfir b. Sulaymān > Isrāʾīl > Shabīb b. Bashīr > Anas b. Mālik

"All expenditures are in Allah's Cause, except for buildings, for there is no good in it."  

الترمذي:٢٤٨٢حَدَّثَنَا مُحَمَّدُ بْنُ حُمَيْدٍ الرَّازِيُّ حَدَّثَنَا زَافِرُ بْنُ سُلَيْمَانَ عَنْ إِسْرَائِيلَ عَنْ شَبِيبِ بْنِ بَشِيرٍ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ النَّفَقَةُ كُلُّهَا فِي سَبِيلِ اللَّهِ إِلاَّ الْبِنَاءَ فَلاَ خَيْرَ فِيهِ  

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

See similar narrations below:

Collected by Suyūṭī