I heard it from the Messenger of Allah (ﷺ) quite audibly and not secretly: Behold! the…

Sahih Muslim Book 1 Hadith 427

Sahih Muslim #215

The Book of Faith 1:427

'Amr b. 'As reported:

I heard it from the Messenger of Allah (ﷺ) quite audibly and not secretly: Behold! the posterity of my fathers, that is, so and so, are not my friends. Verily Allah and the pious believers are my friends.

Chapter: Allegiance to the believers, and forsaking others and disavowing them

Grade: Sahih