Narrated 'Abdullah:
that the Messenger of Allah (ﷺ) said: "I free myself of the friendship of every Khalil, and if I were to take a Khalil then I would have taken Ibn Abi Quhafah as a Khalil. And indeed your companion is Allah's Khalil." (JA)
English reference (JA): Vol. 1, Book 46, Hadith 3655 (JA)
Arabic reference (JA): Book 49, Hadith 4016 (JA)