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.
حدثنا عبيد الله بن عمر بن ميسرة القواريري حدثنا يزيد بن زريع حدثنا سعيد بن أبي عروبة عن قتادة عن صالح أبي الخليل عن أبي علقمة الهاشمي
أن رسول الله ﷺ يوم حنين بعث جيشا إلى أوطاس فلقوا عدوا فقاتلوهم فظهروا عليهم وأصابوا لهم سبايا فكأن ناسا من أصحاب رسول الله ﷺ تحرجوا من غشيانهن من أجل أزواجهن من المشركين فأنزل الله عز وجل في ذلك {والمحصنات من النساء إلا ما ملكت أيمانكم} أي فهن لكم حلال إذا انقضت عدتهن