Allah's Messenger (ﷺ) said, "Do not long for meeting your enemy, and ask Allah for safety (from all sorts of evil)." (See Hadith No. 266, Vol. 4)
The Prophet (ﷺ) 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 Ansar's valley or their mountain pass."