Messenger of Allah ﷺ 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." (Using translation from Bukhārī 7244)
قَالَ رَسُولُ اللهِ ﷺ لَوْلَا الْهِجْرَةُ لَكُنْتُ امْرَأً مِنَ الْأَنْصَارِ