صحيح مسلم
From Sahih Muslim (Hadith 2380):
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
Reference: Muslim 2380