Abu Saeed Khudri reported,

On the day of Hunayn, the Messenger of Allah ﷺ dispatched an army to Awtas. They met an enemy force, fought them, prevailed over them, and took captive women. Some of the companions of the Messenger of Allah ﷺ felt uneasy about having relations with these women because they had husbands among the polytheists. So Allah عز وجل revealed concerning this, "And married women, except those whom your right hands possess" [Nisa 4:24], meaning they are lawful for you once their waiting period has ended.

Muslim 3608

Sahih

حدثنا عبيد الله بن عمر بن ميسرة القواريري حدثنا يزيد بن زريع حدثنا سعيد بن أبي عروبة عن قتادة عن صالح أبي الخليل عن أبي علقمة الهاشمي

عن أبي سعيد الخدري

أن رسول الله ﷺ يوم حنين بعث جيشا إلى أوطاس فلقوا عدوا فقاتلوهم فظهروا عليهم وأصابوا لهم سبايا فكأن ناسا من أصحاب رسول الله ﷺ تحرجوا من غشيانهن من أجل أزواجهن من المشركين فأنزل الله عز وجل في ذلك {والمحصنات من النساء إلا ما ملكت أيمانكم} أي فهن لكم حلال إذا انقضت عدتهن

مسلم 3608صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Breastfeeding
Chapter
Permissibility of having intercourse with a female captive after determining she is not pregnant, and if she had a husband her marriage was annulled by captivity
Numbering
Darussalam 3608
Muslim 3608