The Prophet ﷺ was sent as a teacher
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."
خَرَجَ رَسُولُ اللَّهِ ﷺ ذَاتَ يَوْمٍ مِنْ بَعْضِ حُجَرِهِ فَدَخَلَ الْمَسْجِدَ فَإِذَا هُوَ بِحَلْقَتَيْنِ: (١) إِحْدَاهُمَا يَقْرَءُونَ الْقُرْآنَ وَيَدْعُونَ اللَّهَ؛ (٢) وَالأُخْرَى يَتَعَلَّمُونَ وَيُعَلِّمُونَ۔ فَقَالَ النَّبِيُّ ﷺ :«كُلٌّ عَلَى خَيْرٍ: (١) هَؤُلاَءِ يَقْرَءُونَ الْقُرْآنَ وَيَدْعُونَ اللَّهَ فَإِنْ شَاءَ أَعْطَاهُمْ وَإِنْ شَاءَ مَنَعَهُمْ (٢) وَهَؤُلاَءِ يَتَعَلَّمُونَ وَيُعَلِّمُونَ، وَإِنَّمَا بُعِثْتُ مُعَلِّمًا۔» فَجَلَسَ مَعَهُمْ۔