It was narrated by Abu Dawud (3114), Ibn Hibban (2575), and al-Hakim (1/340), and from him by al-Bayhaqi (3/384), through Yahya ibn Ayyub, from Ibn al-Had, from Muhammad ibn Ibrahim, from Abu Salamah, from Abu Sa'id al-Khudri: When death approached him, he called for new clothes and put them on. He then said: “I heard the Messenger of Allah, peace and blessings be upon him,” and related the hadith. Al-Hakim said: “Authentic according to the criteria of al-Bukhari and Muslim.” Al-Dhahabi agreed with him, and it is as they both said.
1672 — “People will migrate to you, but you will not migrate to them. By Him in Whose Hand is Muhammad’s soul, no man loves the Ansar (the Helpers) until he meets Allah, Most High, except that he meets Allah while He loves him; and no man hates the Ansar until he meets Allah except that he meets Allah while He hates him.”
Ahmad (3/429) and al-Tabarani in al-Mu'jam al-Kabir (no. 3356) narrated it through Abd al-Rahman ibn Sulayman ibn al-Ghasil, who said: Hamzah ibn Abi Usayd—whose father had taken part in Badr—told us, from al-Harith ibn Ziyad al-Sa'idi al-Ansari, that he came to the Messenger of Allah, peace and blessings be upon him, on the day of the Battle of the Trench, while he was receiving people’s pledges to emigrate. He said, “O Messenger of Allah, accept this man’s pledge.” He asked, “Who is he?” He replied, “My cousin, Hawt ibn Yazid—or Yazid ibn Hawt.” The Messenger of Allah, peace and blessings be upon him, then said: “I shall not accept your pledge. Indeed, the people…”
I say: This is a good chain of transmission. Its narrators are trustworthy, and are among al-Bukhari’s narrators. There is some criticism concerning Ibn al-Ghasil, but it does not detract from him. He was corroborated in part by Sa'id ibn al-Mundhir ibn Abi Humayd al-Sa'idi, from Hamzah, in a report attributed to the Prophet, with the wording: “Whoever loves the Ansar, Allah will love him on the day he meets Him; and whoever hates the Ansar, Allah will hate him on the day he meets Him.”