He heard the Messenger of Allah ﷺ say, "Whoever enters this mosque of ours to learn something good or to teach it is like a warrior striving in the path of Allah, and whoever enters it for any other purpose is like one gazing at something that does not belong to him."
حدثنا عبد الله بن يزيد حدثنا حيوة أخبرني أبو صخر أن سعد بن أبي سعيد المقبري أخبره أنه
إنه سمع رسول الله ﷺ يقول من دخل مسجدنا هذا يتعلم خيرا أو يعلمه كان كالمجاهد في سبيل الله ومن دخله لغير ذلك كان كالناظر إلى ما ليس له