Hadithcore
Sahih al-Bukhari, 3779
sahih

Narrated Abu Huraira:

The Prophet (ﷺ) or Abul-Qasim said, "If the Ansar took their way through a valley or a mountain pass, I would take Ansar's valley. And but for the migration, I would have been one of the Ansar." Abu Huraira used to say, "The Prophet (ﷺ) is not unjust (by saying so). May my parents be sacrificed for him, for the Ansar sheltered and helped him," or said a similar sentence.

حَدَّثَنِي مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا غُنْدَرٌ، حَدَّثَنَا شُعْبَةُ، عَنْ مُحَمَّدِ بْنِ زِيَادٍ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم أَوْ قَالَ أَبُو الْقَاسِمِ صلى الله عليه وسلم ‏

‏ لَوْ أَنَّ الأَنْصَارَ سَلَكُوا وَادِيًا أَوْ شِعْبًا، لَسَلَكْتُ فِي وَادِي الأَنْصَارِ، وَلَوْلاَ الْهِجْرَةُ لَكُنْتُ امْرَأً مِنَ الأَنْصَارِ ‏

‏‏.‏ فَقَالَ أَبُو هُرَيْرَةَ مَا ظَلَمَ بِأَبِي وَأُمِّي، آوَوْهُ وَنَصَرُوهُ‏.‏ أَوْ كَلِمَةً أُخْرَى‏.‏

References2 variants
In-Book Reference
Book 63, Hadith 4
USC-MSA web (English) reference
Vol. 5, Book 58, Hadith 123 (deprecated numbering scheme)
Related hadiths3
Compare isnād across 3 related chains →