Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) narrated: I heard the Prophet (peace and blessings be upon him) saying: "If all the people were to take the path of a valley or a mountain pass, I would certainly be with the Ansar."
And I heard the Prophet (peace and blessings be upon him) saying: "Were it not for (the virtue and importance of) the Hijrah, I would have been one of the Ansar."