حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، قَالَ حَدَّثَنَا أَبُو عَامِرٍ، عَنْ زُهَيْرِ بْنِ مُحَمَّدٍ، عَنْ عَبْدِ اللَّهِ ابْنِ مُحَمَّدِ بْنِ عَقِيلٍ، عَنِ الطُّفَيْلِ بْنِ أُبَىِّ بْنِ كَعْبٍ، عَنْ أَبِيهِ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ لَوْلاَ الْهِجْرَةُ لَكُنْتُ امْرَأً مِنَ الأَنْصَارِ ‏"‏ ‏.‏ وَبِهَذَا الإِسْنَادِ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏ لَوْ سَلَكَ النَّاسُ وَادِيًا أَوْ شِعْبًا لَكُنْتُ مَعَ الأَنْصَارِ ‏"‏ ‏.‏ هَذَا حَدِيثٌ حَسَنٌ ‏.‏
Translation
Narrated Shu'bah

from 'Adi bin Thabit, from Al-Bara bin 'Azib, that he heard the Prophet (ﷺ), or - he said: "The Prophet (ﷺ) said, about the Ansar: 'No one loves them except a believer, and no one hates them except a hypocrite. Whoever loves them, then Allah loves him, and whoever hates them then Allah hates him.'" So we said to him: "Did you hear this from Al-Bara?" He said: "He narrated it to me."