Abu Sa'id al-Khudri reported Allah's Messenger (ﷺ) as saying: When there are three persons, one of them should lead them. The one among them most worthy to act as Imam is one who is best versed in the Qur'an.
Hadith Referenceصحيح مسلم / كتاب المساجد ومواضع الصلاة / 672
Hadith Commentary: Benefits and Issues: This hadith establishes that the one most deserving of leading the prayer (imamah) is the person who has a special devotion and connection to the Noble Qur’an and recites it abundantly. However, there is a difference of opinion regarding whether “recitation” (qira’ah) here refers merely to memorization of the Qur’an and frequent recitation, or whether it also includes knowledge and understanding of the Qur’an along with memorization. According to Imam Ahmad, mere recitation (qira’ah) is sufficient to give precedence, while according to the rest of the imams, the one who possesses knowledge and understanding of the Qur’an is given precedence. If the reciter (qari) is also a scholar (‘alim), then there is no difference of opinion regarding his precedence.
Source: Tuhfat al-Muslim: Commentary on Sahih Muslim, Page: 1529
´It was narrated that Abu Sa'eed said:` "The Messenger of Allah (ﷺ)said: 'If there are three people, let one of them lead the others in prayer, and the one who has the most right to lead the prayer is the one who recites (knows) the most (Qur'an)."'
Hafiz Muhammad Ameen
841. Commentary: For details, see Sunan an-Nasa'i Hadith: 781, 800 and their benefits and issues.
Source: Sunan Nasa'i: Translation and Benefits by Shaykh Hafiz Muhammad Amin Hafizullah, Page: 841