Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) narrates: The Prophet (peace and blessings of Allah be upon him) said: "When three people are traveling, one of you should lead (as imam), and the one who has the most knowledge of recitation among you has the greatest right to lead."