Abdullah bin Masud reported,

The Prophet ﷺ said, "Had I taken anyone as a close friend, I would have taken Abu Bakr as such. But he is my brother and my companion, and Allah has taken your companion as His close friend."

Azami 9836

Sahih

عن عبد الله بن مسعود

عن النبي ﷺ قال: لو كنت متخذا خليلا لاتخذت أبا بكر خليلا ولكنه أخي وصاحبي، وقد اتخذ الله صاحبكم خليلا.

الأعظمي 9836صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the Companions and reports about them
Chapter
Virtues of Abu Bakr and his reports
Section
If the Prophet ﷺ had taken a close friend, it would have been Abu Bakr
Numbering
Jami al-Kamil 9836 (2nd edition)
Azami 9836