Sayyiduna Abu Mas'ud al-Ansari (may Allah be pleased with him) says that the Messenger of Allah (peace and blessings be upon him) said: "The people should be led in prayer by the one who has read the most of the Qur'an. If they are equal in the Qur'an, then (I think he (peace and blessings be upon him) said) the one who knows the Sunnah best. If they are equal in the Sunnah too, then the one who was earliest in Hijrah; and if they are equal in Hijrah, then the one who is oldest in age. No man should lead another in prayer in his domain of authority, nor sit in his place of honour in his house, except with his permission."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5132