It is narrated from Sayyiduna Sa'd bin Ubadah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "In this tribe of the Ansar (in love and enmity towards them) there is a test: loving them is a sign of faith, and hating and bearing malice towards them is a sign of hypocrisy."
Imam Abu Bakr bin Abi Shaybah and Imam Ahmad bin Hanbal recorded this hadith with a chain in which one narrator is not explicitly named.