[Machine] The Messenger of Allah ﷺ said, "The one who leads the people in prayer is usually the one who has the most knowledge of the Quran. If they are equal in their knowledge of the Quran, then the one who made the migration earlier is the leader. If their migration dates are the same, then the one who has the most understanding of the religion is the leader. If their understanding of the religion is the same, then the oldest among them is the leader. No man should be trusted in his authority or be allowed to sit on his honorable seat in his house without his permission."
قَالَ رَسُولُ اللهِ ﷺ «يَؤُمُّ الْقَوْمَ أَكْثَرُهُمْ قِرَاءَةً فَإِنْ كَانَتِ الْقِرَاءَةُ وَاحِدَةً فَأَقْدَمُهُمْ هِجْرَةً فَإِنْ كَانَتِ الْهِجْرَةُ وَاحِدَةً فَأَفْقَهُهُمْ فِقْهًا فَإِنْ كَانَ الْفِقْهُ وَاحِدًا فَأَكْبَرُهُمْ سِنًّا وَلَا يُؤَمَّنَّ رَجُلٌ فِي سُلْطَانِهِ وَلَا يُجْلَسْ عَلَى تَكْرِمَتِهِ فِي بَيْتِهِ إِلَّا بِإِذْنِهِ»