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."
أَنَّهُ قَالَ قَالَ رَسُولُ اللَّهِ ﷺ بِمِثْلِ حَدِيثِ عُبَيْدِ اللَّهِ وَقَالَ وَرَجُلٌ مُعَلَّقٌ بِالْمَسْجِدِ إِذَا خَرَجَ مِنْهُ حَتَّى يَعُودَ إِلَيْهِ