The companions of the Messenger of Allah ﷺ captured women as prisoners on the day of Awtas who had husbands among the polytheists. Some of the companions of the Messenger of Allah ﷺ held back and felt it would be sinful to have relations with them. So this verse was revealed concerning that, "And married women, except those whom your right hands possess" [Nisa 4:24].
حدثنا ابن أبي عدي عن سعيد عن قتادة عن صالح أبي الخليل عن أبي علقمة
أن أصحاب رسول الله ﷺ أصابوا سبايا يوم أوطاس لهن أزواج من أهل الشرك فكان أناس من أصحاب رسول الله ﷺ كفوا وتأثموا من غشيانهن قال فنزلت هذه الآية في ذلك {والمحصنات من النساء إلا ما ملكت أيمانكم}
Its isnad is sahih. Ibn Abu Adi is Muhammad bin Ibrahim bin Abu Adi, Saeed is Ibn Abu Aruba, Salih Abul-Khalil is Ibn Abu Maryam Dubai, and Abu Alqama is the Egyptian, Farsi, the freedman of Banu Hashim, who held the judgeship of Ifriqiya, and he is trustworthy and virtuous. The hadith has already appeared at 11631.