It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever believes in Allah and His Messenger cannot harbor hatred towards the Ansar, or (he said): (whoever harbors hatred towards the Ansar) Allah and His Messenger harbor hatred towards him."
Hadith Referenceمسند احمد / ومن مسند بني هاشم / 2818