كتاب الإيمان
1  
The Book of Faith
(33)
Chapter: Evidence that love of the Ansar and Ali (r.a.) is a part of faith and a sign thereof; Hating them is a sign of hypocrisy
(33)
باب الدَّلِيلِ عَلَى أَنَّ حُبَّ الأَنْصَارِ وَعَلِيٍّ رَضِيَ اللَّهُ عَنْهُمْ مِنَ الإِيمَانِ وَعَلاَمَاتِهِ وَبُغْضَهُمْ مِنْ عَلاَمَاتِ النِّفَاقِ
Sahih Muslim 74 a

It is reported on the authority of Anas that the Messenger of Allah (may peace and blessings Be upon him) observed:

The sign of a hypocrite is the hatred against the Ansar and the sign of a believer is the love for the Ansar.
حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، عَنْ شُعْبَةَ، عَنْ عَبْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ بْنِ جَبْرٍ، قَالَ سَمِعْتُ أَنَسًا، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ آيَةُ الْمُنَافِقِ بُغْضُ الأَنْصَارِ وَآيَةُ الْمُؤْمِنِ حُبُّ الأَنْصَارِ ‏"‏ ‏.‏
Reference : Sahih Muslim 74a
In-book reference : Book 1, Hadith 141
USC-MSA web (English) reference : Book 1, Hadith 136
  (deprecated numbering scheme)