[Machine] The Prophet ﷺ said, "Lead the people in prayer whoever among them has the most knowledge of the Book of Allah. If they are equal in their knowledge of the Book, then inform them with the Sunnah. If they are equal in their knowledge of the Sunnah, then let the one who embraced Islam earlier lead them in prayer. Do not lead a man in his authority, and do not sit on his honorable place in his house unless he gives you permission."
قَالَ النَّبِيُّ ﷺ «يَؤُمُّ الْقَوْمَ أَقْرَؤُهُمْ لِكِتَابِ اللهِ فَإِنْ كَانُوا فِي الْهِجْرَةِ سَوَاءً فَأَعْلَمُهُمْ بِالسُّنَّةِ فَإِنْ كَانُوا فِيهَا سَوَاءً فَأَقْدَمُهُمْ إسْلَامًا وَلَا تَؤُمَّ رَجُلًا فِي سُلْطَانِهِ وَلَا تَجْلِسْ عَلَى تَكْرِمَتِهِ فِي بَيْتِهِ إلَّا أَنْ يَأْذَنَ لَكَ»