حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ، حَدَّثَنَا حَاتِمُ بْنُ إِسْمَاعِيلَ ، عَنْ حُمَيْدِ بْنِ صَخْرٍ ، عَنِ الْمَقْبُرِيِّ ، عَنْ أَبِي هُرَيْرَةَ ، قَالَ : سَمِعْتُ رَسُولَ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - يَقُولُ : مَنْ جَاءَ مَسْجِدِي هَذَا لَمْ يَأْتِهِ إِلَّا لِخَيْرٍ يَتَعَلَّمُهُ أَوْ يُعَلِّمُهُ ، فَهُوَ بِمَنْزِلَةِ الْمُجَاهِدِ فِي سَبِيلِ اللهِ ، وَمَنْ جَاءَ لِغَيْرِ ذَلِكَ فَهُوَ بِمَنْزِلَةِ الرَّجُلِ الَّذِي يَنْظُرُ إِلَى مَتَاعِ غَيْرِهِ .
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."