HAKIM 310: from Innah —
[Machine] The Messenger of Allah ﷺ heard saying: "Whoever enters our mosque to learn or teach something good, he is like a warrior in the cause of Allah, and whoever enters it for any other reason, he is like someone who looks at what does not belong to him."

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


No Grade (Dhahabī)
Ḥākim > Book of Knowledge > § [Machine] As for the statement of Abdullah ibn Numayr...
hadithunlocked.com