Sahih Muslim
The Book of Zakat (Kitab Al-Zakat)
Book Number: 005 / Hadith Number: 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."