Abu Mas’ud reported: The Messenger of Allah, peace and blessings be upon him, said, “The best versed in the recitation of the Quran should lead the prayer. If they are equal in their recitation, then the one most knowledgeable of them in the Sunnah. If are equal in knowledge of the Sunnah, then the one who first performed emigration. If they emigrated at the same time, then the one who first embraced Islam. No man should lead another man in prayer, nor sit in the honored place in his home, unless he has his permission.”
Source: Ṣaḥīḥ Muslim 673
Grade: Sahih (authentic) according to Muslim
عَنْ أَبِي مَسْعُودٍ الْأَنْصَارِيِّ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَؤُمُّ الْقَوْمَ أَقْرَؤُهُمْ لِكِتَابِ اللَّهِ فَإِنْ كَانُوا فِي الْقِرَاءَةِ سَوَاءً فَأَعْلَمُهُمْ بِالسُّنَّةِ فَإِنْ كَانُوا فِي السُّنَّةِ سَوَاءً فَأَقْدَمُهُمْ هِجْرَةً فَإِنْ كَانُوا فِي الْهِجْرَةِ سَوَاءً فَأَقْدَمُهُمْ سِلْمًا وَلَا يَؤُمَّنَّ الرَّجُلُ الرَّجُلَ فِي سُلْطَانِهِ وَلَا يَقْعُدْ فِي بَيْتِهِ عَلَى تَكْرِمَتِهِ إِلَّا بِإِذْنِهِ
673 صحيح مسلم كتاب المساجد ومواضع الصلاة باب من أحق بالإمامة