Amr bin As reported,

I heard the Messenger of Allah ﷺ say openly, not in secret, "The family of so-and-so, meaning a certain person, are not my allies. My ally is only Allah and the righteous believers."In Bukhari's narration, "But they have ties of kinship which I will moisten with their due moisture," meaning he would maintain those ties through kindness.

Azami 14060

Sahih

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

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

الأعظمي 14060صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Righteousness and maintaining ties
Section
Womb is sustained by its connection
Numbering
Jami al-Kamil 14060 (2nd edition)
Azami 14060