The sons of Al-Harit bin ‘Amr bin Naufal bought Khubaib for he was a person who had killed (their father) Al-Hari bin ‘Amr on the day (of the battle) of Badr. Khubaib remained imprisoned by them till they decided unanimously to kill him. One day Khubaib borrowed from a daughter of Al-Harith, a razor for shaving his public hair, and she lent it to him. By chance, while she was inattentive, a little son of hers went to him (i.e. Khubaib) and she saw that Khubaib had seated him on his thigh while the razor was in his hand. She was so much terrified that Khubaib noticed her fear and said, “Are you afraid that I will kill him? Never would I do such a thing.” Later on (while narrating the story) she said, “By Allah, I had never seen a better captive than Khubaib. By Allah, one day I saw him eating from a bunch of grapes in his hand while he was fettered with iron chains and (at that time) there was no fruit in Mecca.” She used to say,” It was food Allah had provided Khubaib with.”
When they took him to Al-Hil out of Mecca sanctuary to martyr him, Khubaib requested them. “Allow me to offer a two-Rak’at prayer.” They allowed him and he prayed two Rakat and then said, “By Allah! Had I not been afraid that you would think I was worried, I would have prayed more.” Then he (invoked evil upon them) saying, “O Allah! Count them and kill them one by one, and do not leave anyone of them”‘ Then he recited: “As I am martyred as a Muslim, I do not care in what way I receive my death for Allah’s Sake, for this is for the Cause of Allah. If He wishes, He will bless the cut limbs of my body.” Then Abu Sarva, ‘Ubqa bin Al-Harith went up to him and killed him. It was Khubaib who set the tradition of praying for any Muslim to be martyred in captivity (before he is executed). The Prophet told his companions of what had happened (to those ten spies) on the same day they were martyred. Some Quraish people, being informed of ‘Asim bin Thabit’s death, sent some messengers to bring a part of his body so that his death might be known for certain, for he had previously killed one of their leaders (in the battle of Badr). But Allah sent a swarm of wasps to protect the dead body of ‘Asim and they shielded him from the messengers who could not cut anything from his body.