Hadithcore
Sunan Abi Dawud, 472
hasan· Al-Albani

Abu Hurairah reported the Messenger of Allah (ﷺ) as saying; one shall have the thing the for which one comes to the mosque.

حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا صَدَقَةُ بْنُ خَالِدٍ، حَدَّثَنَا عُثْمَانُ بْنُ أَبِي الْعَاتِكَةِ الأَزْدِيُّ، عَنْ عُمَيْرِ بْنِ هَانِئٍ الْعَنْسِيِّ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏

‏ مَنْ أَتَى الْمَسْجِدَ لِشَىْءٍ فَهُوَ حَظُّهُ ‏

‏ ‏.‏

References2 variants
In-Book Reference
Book 2, Hadith 82
English Reference
Book 2, Hadith 472