The Messenger of Allah ﷺ, or Abu Qasim, said, "If the Ansar were to travel through one valley or mountain pass and the rest of the people through another, I would travel through the valley of the Ansar. Were it not for the migration, I would be one of the Ansar."Abu Hurairah used to say, "May my father and mother be sacrificed for him, he did them no injustice. They sheltered him and supported him," and he added another phrase.
حدثنا محمد بن جعفر حدثنا شعبة عن محمد بن زياد
قال رسول الله ﷺ أو أبو القاسم لو أن الأنصار سلكوا واديا أو شعبا وسلك الناس واديا أو شعبا لسلكت وادي الأنصار ولولا الهجرة لكنت امرأ من الأنصار قال فكان أبو هريرة يقول ما ظلم بأبي وأمي لقد آووه ونصروه وكلمة أخرى
Its chain of transmission is sahih. Bukhari related it, 5/38, in the Book of Virtues, the Prophet's saying, "Were it not for migration," and Muslim, 2/735, no. 1059, in the Book of Zakat, giving to those whose hearts are to be won over, from Anas, and Tirmidhi, 4/712, no. 3901, in the Book of Virtues, the virtue of the Ansar, and he graded it hasan, also from Anas.