Qays al-Kharifi (may Allah have mercy on him) narrates: I heard Sayyiduna Ali (may Allah be pleased with him) saying: "The Messenger of Allah (peace and blessings be upon him) was foremost (in virtue and excellence), Sayyiduna Abu Bakr (may Allah be pleased with him) came second, and Sayyiduna Umar (may Allah be pleased with him) came third; then a trial (fitnah) engulfed us, and after that there happened what Allah, Majestic is His Majesty, willed."
Abdullah (may Allah have mercy on him) said: My father (Imam Ahmad, may Allah have mercy on him) said: "By his saying 'then a trial engulfed us', he intended to show humility (regarding himself)."
Related hadith on this topic