Abu Saeed Khudri reported,

The Prophet of Allah ﷺ sent an army to Awtas. They met the enemy, fought them, and prevailed over them, capturing women whose husbands were among the polytheists. The Muslims felt uneasy about being intimate with them, so Allah عز وجل revealed, "And married women, except those your right hands possess" [Nisa 4:24], meaning these are lawful for you once their waiting period has ended.

Nasai 3335

Sahih

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

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

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

النسائي 3335صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Marriage
Chapter
Interpretation of the saying of Allah عز وجل, "And married women except those your right hands possess"
Numbering
Darussalam 3335
Nasai 3335