It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "If all the people were to walk in one valley or mountain pass, and the Ansar were to walk in another mountain pass or valley, I would take the mountain pass of the Ansar." At this Sayyiduna Abu Hurayrah (may Allah be pleased with him) said (by way of comment): "May my father and mother be sacrificed for him (peace and blessings be upon him); he (peace and blessings be upon him) did no injustice. Indeed, the Ansar are the very people who comforted him (peace and blessings be upon him) with their wealth and their lives, gave him refuge and helped him fully."
Imam Abu Dawud al-Tayalisi recorded this hadith with a sahih (authentic) chain; Imam Ahmad bin Hanbal, Imam al-Bukhari in his Sahih and Imam al-Nasa'i in al-Sunan al-Kubra also recorded it. However, instead of the word "wasawhu" (they comforted him), Imam al-Bukhari mentions in its place the words "and another word", and he narrated "wadiyan wa shi'ban" without the alif (that is, with "and" instead of "or").
Imam al-Harith also recorded it mawquf with a sahih (authentic) chain, in these words: Sayyiduna Abu Hurayrah (may Allah be pleased with him) said: "Were it not for the hijrah (and its merit), I would certainly have been one of the Ansar; and if all the people were to walk in a valley or mountain pass, and the Ansar were to take a valley or mountain pass, I would walk the way of the valley and the mountain pass of the Ansar."
Hadith Takhrij«رواه أبو داود الطيالسي بسند صحيح، وأحمد بن حنبل ، والبخاري في صحيحه، والنسائي في الكبرى، إلا أن البخاري لم يقل: "واسوه" وقال مكانها: "وكلمة أخرى" وقال: "واديا وشعبا " بغير ألف» «ورواه الحارث موقوفا بسند صحيح، ولفظه: قال أبو هريرة: "لولا الهجرة لكنت امرأ من الأنصار، ولو أن الناس سلكوا واديا أو شعبا وسلكت الأنصار واديا أو شعبا لسلكت وادي الأنصار وشعبهم"» «أخرجه صحيح البخاري برقم: 3327، وأخرجه صحيح مسلم برقم: 1059، وأخرجه سنن الترمذي برقم: 3901، وأخرجه فتح الباري برقم: 3327، 4075، 6818، 7003، وأخرجه مصنف عبد الرزاق برقم: 19908، وأخرجه المعجم الأوسط للطبراني برقم: 3857، وأخرجه السنن الكبرى للنسائي برقم: 8561»