Sayyiduna Abu Mas'ud al-Ansari (may Allah be pleased with him) relates that the Messenger of Allah (peace and blessings be upon him) said: "The one who has read the most Qur'an should lead the people in prayer. If they are equal in recitation, then the one with the most knowledge of the Sunnah. If they are equal in the Sunnah as well, then the one who migrated first. If they are equal in migration as well, then the eldest. No one should lead another in prayer within his authority, nor sit in his house on his place of honour."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5317