´It was narrated from Abu Sa'eed that the Prophet (ﷺ) said:` "when there are three people let one of them lead the prayer, and the one who is most entitled to lead the prayer is the one who has most knowledge of the Qur'an."
Hadith ReferenceSunan an-Nasa'i / The Book of Leading the Prayer (Al-Imamah) / Hadith: 783
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح مسلم