It is narrated from Hazrat Abu Saeed Khudri (may Allah be pleased with him) that the Prophet (peace and blessings of Allah be upon him) said: Where there are three people, at the time of prayer one should become the imam, and among them, the one who knows the most Qur'an has the greatest right to lead.