AHMAD 8603: from Abū Hurayrah —
[Machine] The translation of the passage is as follows: "The Messenger of Allah ﷺ said: 'Whoever enters our mosque to learn or teach something good, he will be like a fighter in the way of Allah. And whoever enters it for other than that, he will be like someone who looks at things that do not concern him.'"

أحمد ٨٦٠٣: عن ابو هريره —
عَنْ رَسُولِ اللهِ ﷺ قَالَ مَنْ دَخَلَ مَسْجِدَنَا هَذَا لِيَتَعَلَّمَ خَيْرًا أَوْ لِيُعَلِّمَهُ كَانَ كَالْمُجَاهِدِ فِي سَبِيلِ اللهِ وَمَنْ دَخَلَهُ لِغَيْرِ ذَلِكَ كَانَ كَالنَّاظِرِ إِلَى مَا لَيْسَ لَهُ


Weak (Arnaʾūṭ)
Aḥmad > Abū Hurayrah ؓ
hadithunlocked.com