[Machine] The Messenger of Allah ﷺ said, "The most knowledgeable among the people should lead them in prayer. If they are equal in recitation, then the one who immigrated (to Medina) earlier should lead. If they are equal in immigration, then the one who knows the Sunnah the best should lead. If they are equal in knowledge, then the oldest among them should lead. No one should lead others in their authority, and you should not sit in the place of honor in their home without their permission."
قَالَ رَسُولُ اللهِ ﷺ «يَؤُمُّ الْقَوْمَ أَقْرَؤُهُمْ فَإِنْ كَانُوا فِي الْقِرَاءَةِ سَوَاءً فَأَقْدَمُهُمْ هِجْرَةً فَإِنْ كَانُوا فِي الْهِجْرَةِ سَوَاءً فَأَعْلَمُهُمْ بِالسُّنَّةِ فَإِنْ كَانُوا فِي الْعِلْمِ سَوَاءً فَأَقْدَمُهُمْ سِنًّا وَلَا يُؤَمَّنَّ رَجُلٌ فِي سُلْطَانِهِ وَلَا تَجْلِسَنَّ عَلَى تَكْرِمَتِهِ فِي بَيْتِهِ إلَّا أَنْ يَأْذَنَ لَكَ»