Sahih al-Bukhari, Book 62, Hadith 9 (Bukhari 3501)

Narrated Aiyub:

The Prophet (ﷺ) said, "If I were to take a Khalil, I would have taken him (i.e. Abu Bakr) as a Khalil, but the Islamic brotherhood is better."