Sunan Ibn Majah, hadith 227
Narrated by Abu Hurairah. Arabic text with our own translation and explanation.
From Ibn Majah back to the Prophet ﷺ
- 1Abu Bakr ibn Abu Shaybanarrated it to Ibn Majahأَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ
- 2Hatim ibn Isma'ilحَاتِمُ بْنُ إِسْمَاعِيلَ
- 3Humayd ibn Sakhrحُمَيْدِ بْنِ صَخْرٍ
- 4Al‑Maqburiالْمَقْبُرِيِّ
- 5Abu Hurayraأَبِي هُرَيْرَةَ
- 6The Messenger of Allah ﷺرَسُولُ اللَّهِ ﷺ
Order as it appears in the Arabic text of this narration. The names have been transliterated from Arabic into Latin script.
The narration
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا حَاتِمُ بْنُ إِسْمَاعِيلَ، عَنْ حُمَيْدِ بْنِ صَخْرٍ، عَنِ الْمَقْبُرِيِّ، عَنْ أَبِي هُرَيْرَةَ، قَالَ سَمِعْتُ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ يَقُولُ " مَنْ جَاءَ مَسْجِدِي هَذَا لَمْ يَأْتِهِ إِلاَّ لِخَيْرٍ يَتَعَلَّمُهُ أَوْ يُعَلِّمُهُ فَهُوَ بِمَنْزِلَةِ الْمُجَاهِدِ فِي سَبِيلِ اللَّهِ وَمَنْ جَاءَ لِغَيْرِ ذَلِكَ فَهُوَ بِمَنْزِلَةِ الرَّجُلِ يَنْظُرُ إِلَى مَتَاعِ غَيْرِهِ " .
The translation in this language is coming soon; the explanation is provided below.
Translation and explanation by Khutba World, translated from Arabic.
Whoever visits the Prophet’s ﷺ Mosque to learn or teach receives a great reward.
This refers to the Mosque of the Prophet ﷺ in Medina.
An expression for striving in obedience to Allah and promoting good.
A comparison for someone who is present without the good purpose of learning or teaching.
Scholars infer from this that sincerely seeking and teaching knowledge is a particularly virtuous deed. The comparison with a fighter emphasizes the great reward, but does not equate the two deeds in every situation. The wording specifically praises visiting the Mosque of the Prophet ﷺ; the broader principle of acquiring knowledge also applies elsewhere. The contrast warns that being present without a good purpose does not bring the special virtue of seeking knowledge.
- Before going to the mosque, decide what good purpose you intend to serve, such as learning, teaching, or worship.
- Share knowledge carefully and with the intention of bringing others closer to good.
- Do not turn a mosque visit into an opportunity to concern yourself with other people’s affairs.
This Sahih narration appears directly alongside this hadith and likewise addresses the virtue of seeking knowledge in the mosque.
Sunan Ibn Majah · #226 (Sahih)This Sahih narration describes someone who comes to the mosque to learn or teach knowledge and promises a great reward for it.
A hadith every day, in your language
The app gives you a hadith with an explanation every day, also as a widget on your phone. Free to use.