It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him): I heard the Messenger of Allah (peace and blessings be upon him) say: "Whoever comes to this mosque of mine for the purpose of learning or teaching some good, he is at the rank of one who strives (a mujahid) in the path of Allah; and whoever comes for some other purpose, he is like a man who looks at the goods and belongings of another."
Hadith Referenceمسند أبي يعلى الموصلي / تابع مسند أبي هريرة رضي الله عنه / 6472
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده صحيح . » «قال سعيد بن محمد السناري: منكر» «أخرجه سنن ابن ماجه برقم: 227، وأخرجه مسند أحمد برقم: 9138، وأخرجه المستدرك على الصحيحين برقم: 316، 317، مسند ابویعلیٰ ترقیم الاثری: 6441»