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