Hadithcore
Sahih al-Bukhari, 3655
sahih

Narrated Ibn `Umar:

We used to compare the people as to who was better during the lifetime of Allah's Messenger (ﷺ) . We used to regard Abu Bakr as the best, then `Umar, and then `Uthman .

حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ عَبْدِ اللَّهِ، حَدَّثَنَا سُلَيْمَانُ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ قَالَ كُنَّا نُخَيِّرُ بَيْنَ النَّاسِ فِي زَمَنِ النَّبِيِّ صلى الله عليه وسلم فَنُخَيِّرُ أَبَا بَكْرٍ، ثُمَّ عُمَرَ بْنَ الْخَطَّابِ، ثُمَّ عُثْمَانَ بْنَ عَفَّانَ رضى الله عنهم‏.‏

References2 variants
In-Book Reference
Book 62, Hadith 7
USC-MSA web (English) reference
Vol. 5, Book 57, Hadith 7 (deprecated numbering scheme)