Jami` at-Tirmidhi, Book 37, Hadith 68 (Tirmidhi 2552)

Shahib bin Bashir narrated from Anas bin Malik that the Messenger of Allah (s.a.w) said:

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