Sahih Muslim Book 1, Hadith Number 417.
Chapter : Friendship with believers and dissociation with non-believers and severance from the.
‘Amr b. ‘As reported: I heard it from the Messenger of Allah (may peace be upon him) 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.