(9) باب مَا يَجُوزُ مِنَ اللَّوْ
Narrated Abu Huraira:
Allah's Messenger (ﷺ) said, "But for the emigration, I would have been one of the Ansar: and if the people took their way in a valley (or a mountain pass), I would take the Ansar's valley or the mountain pass."
Reference: Sahih al-Bukhari 7244
In-book reference: Book 94, Hadith 19
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 90, Hadith 350