Amr bin As reported,

I heard the Messenger of Allah ﷺ say openly, not in secret, "The family of Abu" — Amr said, "In the manuscript of Muhammad bin Jafar there is a blank space here" — "are not my allies. My ally is only Allah and the righteous among the believers."In Bukhari's narration, "But they have ties of kinship with me which I keep moist by maintaining them."

Azami 14094

Sahih

عن عمرو بن العاص، قال

سمعت رسول الله ﷺ جهارا غير سر، يقول: ألا إن آل أبي- قال عمرو: في كتاب محمد بن جعفر بياض-، ليسوا بأوليائي، إنما وليي الله، وصالح المؤمنين. وفي رواية البخاري: ولكن لهم رحم أبلها بصلتها.

الأعظمي 14094صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Characteristics of Muslims, and their rights upon one another
Section
Allegiance to the believers
Numbering
Jami al-Kamil 14094 (2nd edition)
Azami 14094