Jami' al-Saghir / Jam' al-Jawami' (al-Suyuti) 21483a
"مَنْ دَخَلَ مَسْجدِى هَذَا ليتَعَلَّمَ خَيرًا أَوْ لِيُعَلِّمَهُ كَانَ بمَنْزلَةِ الْمُجَاهِدِ في سَبيل اللهِ، وَمَنْ دَخَلَهُ لِغَير ذَلِكَ مِن أَحَادِيثِ النَّاسِ، كَانَ بمنْزِلَةِ مَنْ يَرى ما يُعْجبُهُ وَهُوَ شَينٌ لِغَيرهِ".
Translation
Machine translation, not reviewed
"Whoever enters this mosque of mine to learn good or to teach it, is as one who strives in the cause of Allah. And whoever enters it for other than that, from the talk of people, is like one who looks at something that pleases him while it is a defect for others."
No source translates this, so this English was written by a computer model. It can be wrong; rely on the Arabic. Report a problem below.
Notes
[طب] الطبرانى في الكبير [ض] ضياء المقدسي في مختاره عن سهل بن سعد
Grades by grader
No grade is recorded for this wording. Ask what scholars say about its grade