Answer
After Khalid was demoted by the Caliph Umar in 638 AD, he was primarily based in the city of Homs in Syria. He was still a powerful and influential figure, and he continued to lead military campaigns against the Byzantine Empire. In 639 AD, he led a successful campaign against the Byzantine city of Antioch. He died in Homs in 642 AD.