[Machine] The Messenger of Allah ﷺ said, "Let the one who is most knowledgeable of the Book of Allah lead the people in prayer. If they are equal in their recitation, then the one who has the most knowledge of the Sunnah should lead them. If they are equal in their knowledge of the Sunnah, then the one who migrated first should lead them. If they are equal in their migration, then the eldest among them should lead. And no man should be trusted with authority or sit on his position of honor except with his permission."
قَالَ رَسُولُ اللهِ ﷺ «لِيَؤُمَّ الْقَوْمَ أَقْرَؤُهُمْ لِكِتَابِ اللهِ فَإِنْ كَانُوا فِي الْقِرَاءَةِ سَوَاءً فَأَعْلَمُهُمْ بِالسُّنَّةِ وَإِنْ كَانُوا فِي السُّنَّةِ سَوَاءً فَأَقْدَمُهُمْ هِجْرَةً وَإِنْ كَانُوا فِي الْهِجْرَةِ سَوَاءً فَأَكْبَرُهُمْ سِنًّا وَلَا يُؤَمَّنَّ رَجُلٌ فِي سُلْطَانِهِ وَلَا يُجْلَسُ عَلَى تَكْرِمَتِهِ إِلَّا بِإِذْنِهِ»