Narrated Ubayy bin Ka'b:
Ubayy bin Ka'bthat the Messenger of Allah (ﷺ) said: "If it were not for the Hijrah, I would be a man from the Ansar." (JA)
English reference (JA): Vol. 1, Book 46, Hadith 3899 (JA)
Arabic reference (JA): Book 49, Hadith 4273 (JA)