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."
سمعت رسول الله ﷺ جهارا غير سر، يقول: ألا إن آل أبي- قال عمرو: في كتاب محمد بن جعفر بياض-، ليسوا بأوليائي، إنما وليي الله، وصالح المؤمنين. وفي رواية البخاري: ولكن لهم رحم أبلها بصلتها.
Bukhari narrated it in Adab (5990) from Amr bin Abbas, he said, Muhammad bin Jafar narrated to us, he said, Shubah narrated to us, from Ismail bin Abu Khalid, from Qays, from Amr bin As, who said, then he mentioned it. This is his wording.Bukhari said after it, Anbasah bin Abdul-Wahid added, from Bayan, from Qays, from Amr bin As, who said, "I heard the Messenger of Allah ﷺ say," then he mentioned the addition.Muslim also narrated it in Iman (2015) from Ahmad bin Hanbal, who said, Muhammad bin Jafar narrated it to us in a shortened form.