Abu Saeed Khudri reported,

The Messenger of Allah ﷺ sent a military expedition on the day of Hunayn toward Awtas. They encountered their enemy, fought them, and prevailed over them, capturing female prisoners. Some of the companions of the Messenger of Allah ﷺ felt reluctant to have relations with these women because they had husbands among the polytheists. So Allah the Exalted revealed concerning this, "And married women, except those whom your right hands possess" [Nisa 4:24], meaning they are lawful for them once their waiting period has ended.

Abu Dawud 2155

Sahih

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

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

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

أبو داود 2155صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Marriage
Chapter
Intercourse with captives
Numbering
Darussalam 2155
Abu Dawud 2155