Original sentence: Abu Bakr was present at a number of battles of Islam, such as the Battle of Badr and the Battle of Uhud; his role in the early battles of Islam has been the subject of extensive study by historians.Abu Bakr was present at the Farewell Pilgrimage and the event of Ghadir Khumm in 632 CE
Edited sentence: Abu Bakr was present at a number of battles of Islam, such as the Battle of Badr and the Battle of Uhud; he was, however, among the Muslims who ran away from the Battle of Uhud when they were not supposed to, which contributed to the Muslims' defeat in the battle.Abu Bakr was present at the Farewell Pilgrimage in 632 CE.After the pilgrimage, and shortly before Muhammad's death, Abu Bakr was one of many who pledged allegiance to Ali at the event of Ghadir Khumm