The Book of Zakat (Kitab Al-Zakat)
Muslim :: Book 5 : Hadith 2249
This hadith has been narrated, on the authority, of Abu Huraira (with this change of words)." A person whose heart is attached to the mosque when he goes out of it till he returns to it."