Answer
Abu Ubayda pledged allegiance to the Prophet Muhammad, who was the founder of Islam and the first Muslim leader. Abu Ubayda was a close friend and companion of Muhammad, and he served as a military commander and governor under the Prophet's leadership. After Muhammad's death, Abu Ubayda continued to serve as a leader in the Muslim community, and he played an important role in the early expansion of Islam.