[Machine] The Messenger of Allah ﷺ said, "The one who is most knowledgeable of the Book of Allah should lead the people in prayer. If they are equal in recitation, then the one who is most knowledgeable of the Sunnah (traditions) should lead them. If they are equal in knowledge, then the one who made the earliest migration should lead them. If they are equal in migration, then the one who is older should lead them. A person should not appoint another person as a ruler over his authority, and he should not sit on his honored seat in his house without his permission."
قَالَ رَسُولُ اللهِ ﷺ «يَؤُمُّ الْقَوْمَ أَقْرَؤُهُمْ لِكِتَابِ اللهِ فَإِنْ كَانُوا فِي الْقِرَاءَةِ سَوَاءً فَأَعْلَمُهُمْ بِالسُّنَّةِ فَإِنْ كَانُوا فِي الْعِلْمِ سَوَاءً فَأَقْدَمُهُمْ هِجْرَةً فَإِنْ كَانُوا فِي الْهِجْرَةِ سَوَاءً فَأَقْدَمُهُمْ سِنًّا وَلَا يَؤُمُّ الرَّجُلُ الرَّجُلَ فِي سُلْطَانِهِ وَلَا يَقْعُدُ عَلَى تَكْرِمَتِهِ فِي بَيْتِهِ إِلَّا بِإِذْنِهِ»