Banu Khazraj
Ubayy was born in Medina (then known as Yathrib), into the tribe of the Banu Khazraj. He was one of the first to accept Islam and pledge allegiance to Muhammad at the Qaabah before the migration to Medina, becoming one of the Ansar. He participated in the battle of Badr and other following engagements.