Khalid ibn al-Walid ibn al-Mughira al-Makhzumi (died 642) was a 7th-century Arab military commander. He initially led campaigns against Muhammad on behalf of the Quraysh. He later became a Muslim and spent the remainder of his career serving Muhammad and the first two Rashidun caliphs, Abu Bakr and Umar, as a commander of the Muslim army. Khalid played leading command roles in the Ridda Wars against rebel tribes in Arabia in 632–633, the initial campaigns in Sasanian Iraq in 633–634, and the conquest of Byzantine Syria in 634–638.
As a horseman of the Quraysh's aristocratic Banu Makhzum clan, which ardently opposed Muhammad, Khalid played an instrumental role in defeating Muhammad and his followers during the Battle of Uhud in 625. In 627 or 629, he converted to Islam in the presence of Muhammad, who inducted him as an official military commander among the Muslims and gave him the title of Sayf Allah (lit. 'Sword of God'). During the Battle of Mu'ta, Khalid coordinated the safe withdrawal of Muslim troops against the Byzantines. He also led the Bedouins under the Muslim army during the Muslim conquest of Mecca in 629–630 and the Battle of Hunayn in 630. After Muhammad's death, Khalid was appointed to Najd and al-Yamama to suppress or subjugate the Arab tribes opposed to the nascent Muslim state; this campaign culminated in Khalid's victory over rebel leaders Tulayha and Musaylima at the Battle of Buzakha in 632 and the Battle of Yamama in 633, respectively.