Sunan Ibn Majah 227

Book introduction: The Book of the Sunnah

سنن ابن ماجه

Chapter 17The virtue of the scholars, and encouragement to seek knowledge

باب فَضْلِ الْعُلَمَاءِ وَالْحَثِّ عَلَى طَلَبِ الْعِلْمِ

227Sunan Ibn Majah 227Hasan
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا حَاتِمُ بْنُ إِسْمَاعِيلَ، عَنْ حُمَيْدِ بْنِ صَخْرٍ، عَنِ الْمَقْبُرِيِّ، عَنْ أَبِي هُرَيْرَةَ، قَالَ سَمِعْتُ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ يَقُولُ ‏"‏ مَنْ جَاءَ مَسْجِدِي هَذَا لَمْ يَأْتِهِ إِلاَّ لِخَيْرٍ يَتَعَلَّمُهُ أَوْ يُعَلِّمُهُ فَهُوَ بِمَنْزِلَةِ الْمُجَاهِدِ فِي سَبِيلِ اللَّهِ وَمَنْ جَاءَ لِغَيْرِ ذَلِكَ فَهُوَ بِمَنْزِلَةِ الرَّجُلِ يَنْظُرُ إِلَى مَتَاعِ غَيْرِهِ ‏"‏ ‏.‏

It was narrated that Abu Hurairah said:
"I heard the Messenger of Allah say: 'Whoever comes to this mosque of mine, and only comes for a good purpose, such as to learn or to teach, his status is like that of one who fights in Jihad in the cause of Allah. Whoever comes for any other purpose, his status is that of a man who is keeping an eye on other people's property.'"

Grade:
Hasan
Reference:
Sunan Ibn Majah 227
In-book reference:
Book introduction, Hadith 227

Text, translation and grading from Sunnah.com.