This happened before the prescription of veil for them. Sawdah said: I swear by Allah, I was with them when I came (from there to the people) and I was told: These are captives recently brought (here). I returned to my house, and the Messenger of Allah (ﷺ) was there, and Abu Zayd Suhayl ibn Amr was in the corner of the apartment and his hands were tied up on his neck with a rope. He then narrated the rest of the tradition.
Abu Dawud said: They (the sons of 'Afra') killed Abu Jahl b. Hisham. They were deputed for him though they did not realize him: and they were killed in the battle of Badr.
In-book : Book 15, Hadith 204
English translation : Book 14, Hadith 2674