Sunan an-Nasa'i, Book 47, Hadith 35 (In-Book)

It was narrated from Anas that: The Prophet [SAW] said: "Love for Ansar is a sign of Faith, and hatred for Ansar is a sign of hypocrisy."

أَخْبَرَنَا إِسْمَعِيلُ بْنُ مَسْعُودٍ قَالَ حَدَّثَنَا خَالِدٌ يَعْنِي ابْنَ الْحَارِثِ عَنْ شُعْبَةَ عَنْ عَبْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ بْنِ جَبْرٍ عَنْ أَنَسٍ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ حُبُّ الْأَنْصَارِ آيَةُ الْإِيمَانِ وَبُغْضُ الْأَنْصَارِ آيَةُ النِّفَاقِ

sunnah.com