Bara bin Azib reported,

I heard the Prophet ﷺ, or he said the Prophet ﷺ said, "The Ansar, none loves them but a believer, and none hates them but a hypocrite. Whoever loves them, Allah loves him, and whoever hates them, Allah hates him."

Bukhari 3783

Sahih

حدثنا حجاج بن منهال حدثنا شعبة قال أخبرني عدي بن ثابت قال سمعت

البراء رضي الله عنه قال

سمعت النبي ﷺ أو قال قال النبي ﷺ الأنصار لا يحبهم إلا مؤمن ولا يبغضهم إلا منافق فمن أحبهم أحبه الله ومن أبغضهم أبغضه الله

البخاري 3783صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of the Ansar
Chapter
Love of the Ansar
Numbering
Darussalam 3783
Bukhari 3783