The Messenger of Allah ﷺ said, "I disavow every close friendship, and had I been to take anyone as my closest friend, I would have taken Ibn Abu Quhafa as my closest friend. But your companion is the close friend of Allah."
حدثنا محمود بن غيلان حدثنا عبد الرزاق أخبرنا الثوري عن أبي إسحق عن أبي الأحوص
قال رسول الله ﷺ أبرأ إلى كل خليل من خله ولو كنت متخذا خليلا لاتخذت ابن أبي قحافة خليلا وإن صاحبكم خليل الله
Muslim also recorded it in the Book of the Virtues of the Companions, chapter on the virtues of Abu Bakr Siddiq , hadith no. 5/2383, from Thawri with the same wording.On this topic there are also narrations from Abu Saeed [coming up: 3660], Abu Hurairah [coming up: 3661], Ibn Abbas [Bukhari, hadith no. 3656], and Ibn Zubayr [Bukhari, hadith no. 3658].