It was narrated that Bara' bin 'Azib said:
"The Messenger of Allah said: 'Whoever loves the Ansar, Allah will love him, and whoever hates the Ansar, Allah will hate him.' " (One of the narrators) Shu'bah said: "I said to 'Adi: 'Did you hear that from Bara' bin 'Azib?' He said: 'It was to me that he narrated it.'"
English reference: Vol. 1, Book 1, Hadith 163
Arabic reference: Book 1, Hadith 168