Battle of Badr
Having fought on the side of the polytheists, Abbas was captured during the Battle of Badr. Muhammad allowed al-Abbas to ransom himself and his nephew.