One sources stats he was ransomed from after Badr, but was killed by Muhammad himself with a spear in the Battle of Uhud (625 CE). Verse was revealed in this occasion.