Musnad Ahmad
It was narrated that ‘Ali (رضي الله عنه) said: Shall I not tell you of the best of this ummah after its Prophet (ﷺ)? [It is] Abu Bakr, then the best of it after Abu Bakr is ‘Umar (رضي الله عنهما), then Allah puts goodness wherever He wills.
حَدَّثَنَا عَبْد اللَّهِ، حَدَّثَنِي وَهْبُ بْنُ بَقِيَّةَ، أَنْبَأَنَا خَالِدٌ، عَنْ عَطَاءٍ يَعْنِي ابْنَ السَّائِبِ، عَنْ عَبْدِ خَيْرٍ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ أَلَا أُخْبِرُكُمْ بِخَيْرِ، هَذِهِ الْأُمَّةِ بَعْدَ نَبِيِّهَا صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَبُو بَكْرٍ ثُمَّ خَيْرُهَا بَعْدَ أَبِي بَكْرٍ عُمَرُ رَضِيَ اللَّهُ عَنْهُ ثُمَّ يَجْعَلُ اللَّهُ الْخَيْرَ حَيْثُ أَحَبَّ.
Grade: Sahih Hadeeth] (Darussalam)
Reference