Sunan Ibn Majah, Hadith 229 ⓘ
It was narrated that 'Abdullah bin 'Amr said: "The Messenger of Allah came out of one of his apartments one day and entered the mosque, where he saw two circles, one reciting Qur'an and supplicating to Allah, and the other learning and teaching. The Prophet said: 'Both of them are good. These people are reciting the Qur'an and supplicating to Allah, and if He wills He will give them, and if He wills He will withhold from them. And these people are learning and teaching. Verily I have been sent as a teacher.' Then he sat down with them."
حَدَّثَنَا بِشْرُ بْنُ هِلاَلٍ الصَّوَّافُ، حَدَّثَنَا دَاوُدُ بْنُ الزِّبْرِقَانِ، عَنْ بَكْرِ بْنِ خُنَيْسٍ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ زِيَادٍ، عَنْ عَبْدِ اللَّهِ بْنِ يَزِيدَ، عَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو، قَالَ خَرَجَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ذَاتَ يَوْمٍ مِنْ بَعْضِ حُجَرِهِ فَدَخَلَ الْمَسْجِدَ فَإِذَا هُوَ بِحَلْقَتَيْنِ إِحْدَاهُمَا يَقْرَءُونَ الْقُرْآنَ وَيَدْعُونَ اللَّهَ وَالأُخْرَى يَتَعَلَّمُونَ وَيُعَلِّمُونَ فَقَالَ النَّبِيُّ ـ صلى الله عليه وسلم ـ " كُلٌّ عَلَى خَيْرٍ هَؤُلاَءِ يَقْرَءُونَ الْقُرْآنَ وَيَدْعُونَ اللَّهَ فَإِنْ شَاءَ أَعْطَاهُمْ وَإِنْ شَاءَ مَنَعَهُمْ وَهَؤُلاَءِ يَتَعَلَّمُونَ وَيُعَلِّمُونَ وَإِنَّمَا بُعِثْتُ مُعَلِّمًا " . فَجَلَسَ مَعَهُمْ .
also referenced under: Book 1, Hadith 234 (In-Book) & Volume 1, Book 1, Hadith 229 (DarusSalam)