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

Abu Hurairah reported the Messenger of Allah (May peace be upon him) as saying; one shall have the thing the for which one comes to the mosque. Translation Not Available

Book Ref: Sunan Abi Dawud Book 2 Hadith 472
Web Ref:  Sunan Abi Dawud Book 2 Hadith 472