Abu Saeed Khudri reported,

We captured women on the day of Awtas who had husbands among their own people. The companions mentioned this to the Messenger of Allah ﷺ, and then this verse was revealed, "And forbidden to you are married women, except those whom your right hands possess" [Nisa 4:24].

Tirmidhi 3017

Sahih

حدثنا أحمد بن منيع حدثنا هشيم أخبرنا عثمان البتي عن أبي الخليل

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

أصبنا سبايا يوم أوطاس لهن أزواج في قومهن فذكروا ذلك لرسول الله ﷺ فنزلت {والمحصنات من النساء إلا ما ملكت أيمانكم}

الترمذي 3017صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tafsir of the Quran
Chapter
From Surah Al Imran
Numbering
Darussalam 3017
Tirmidhi 3017