Sayyiduna Ibn Abbas (may Allah be pleased with them both) says: We were sitting in a circle in the mosque discussing the virtues of the prophets (peace be upon them), which of them was the most excellent. We mentioned Nuh (peace be upon him) and his long worship, we mentioned Ibrahim, the Friend of the Most Merciful, we mentioned Musa, the one to whom Allah spoke, we mentioned Isa bin Maryam (peace be upon them both), and we mentioned the Messenger of Allah (peace and blessings be upon him). Meanwhile the Messenger of Allah (peace and blessings be upon him) came out to us and said: "What are you talking about among yourselves?" We said: O Messenger of Allah, we were discussing the virtues of the prophets (peace be upon them), which of them was the most excellent. We mentioned Nuh (peace be upon him) and his long worship, we mentioned Ibrahim, the Friend of the Most Merciful, we mentioned Musa, the one to whom the Most Merciful spoke, we mentioned Isa bin Maryam (peace be upon them both), and, O Messenger of Allah, we mentioned you as well. He (peace and blessings be upon him) said: "So whom did you consider the most excellent?" We said: We considered you the most excellent, O Messenger of Allah. Allah sent you to all people, forgave you your past and future sins, and you are the Seal of the Prophets. At this the Messenger of Allah (peace and blessings be upon him) said: "Listen, it is not proper for anyone to say: 'I am better than Yahya bin Zakariyya (peace be upon him).'" We said: O Messenger of Allah, why is that? He (peace and blessings be upon him) said: "Have you not heard how Allah has described him in the Qur'an? He said: 'O Yahya, hold fast to the Scripture with strength, and We gave him wisdom while still a child' [Surah Maryam: 12]." Then he (peace and blessings be upon him) recited until he reached this saying: "A leader, chaste, and a prophet from among the righteous" [Surah Al Imran: 39]. "He never committed a sin, nor did he intend one."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12882