Khalid ibn Walid was from the Meccan tribe of Quraysh , who opposed Muhammad , and he played a vital role in their victory at the Battle of Uhud . Khalid ibn al-Walid ( Khalid son of al-Walid ) was from the Meccan tribe of Quraysh , from a clan that initially opposed Muhammad . He played a vital role in the Meccan victory at the Battle of Uhud .