Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Were it not for the Hijrah, I would have been one of the Ansar. If people took one valley and the Ansar took another valley or mountain pass, I would take the valley of the Ansar, or the mountain pass of the Ansar."

Azami 10508

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: لولا الهجرة لكنت امرءا من الأنصار، ولو سلك الناس واديا، وسلكت الأنصار واديا، أو شعبا لسلكت وادي الأنصار، أو شعب الأنصار.

الأعظمي 10508صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the tribes
Section
Supplication for the Ansar and the Muhajirun for righteousness, forgiveness, blessing, victory, and honor
Numbering
Jami al-Kamil 10508 (2nd edition)
Azami 10508