This is well proven hadith in Sunni School of Thought. This is mentioned in Sahih Muslim and other books of hadith that Loving Imam Ali(as) is the symbol of faith and hating Imam is a sign of hypocrisy.
Ali ibn Abi Talib said:
I swear to Allah who cracked seed and created the life surely the Holy Prophet advised about me nobody will love me but a believer and nobody will have hatred about me but hypocrite.
Zar bin Habish narrated:
Ali ibn Abi Talib said “Surely the Holy Prophet advised about me that only a believer will love me and the person who is hypocrite will hate me.