Sahih al-Bukhari, Book 63, Hadith 4 (Bukhari 3616)

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.