It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "A man who believes in Allah and the Last Day does not hate the Ansar; (and whoever does,) Allah hates him." (The narrator was in doubt about the wording, whether he said "Allah" or "Allah and His Messenger".)
Imam al-Tirmidhi (may Allah have mercy on him) narrated something similar in meaning by way of Mahmud bin Ghaylan, Bishr bin al-Sari and al-Mu'ammal, from Sufyan (may Allah have mercy on him), and he said: "This hadith is hasan sahih."
And Imam al-Nasa'i (may Allah have mercy on him) also narrated something similar in meaning by way of Muhammad bin Adam bin Sulayman, Abu Kurayb, Abu Mu'awiyah, al-A'mash and Adi bin Thabit, from Sa'id bin Jubayr (may Allah have mercy on him).