It is narrated from Hazrat Abu Saeed Khudri (may Allah be pleased with him) that among the captives of the Battle of Autas, women were given to us as spoils of war. Those women had husbands, and we did not feel it was right to have relations with them while their husbands were alive. (So we asked the Prophet ﷺ about this matter.) Then this verse was revealed: "And married women are also forbidden to you, except those whom your right hands possess." Thus, it is lawful to benefit from those who are your slave women.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 11797
Hadith Gradingحکم دارالسلام:إسناده صحيح، م : 1456 ، ابن أبى عدي - وهو محمد بن إبراهيم - وإن روي عن سعيد - وهو ابن إبي عروبة - بعد الاختلاط - متابع ، زاد يزيد بن زريع فى رواية : أى : فهن لكم حلال إذا انقضت عدتهن ، كذا فى مسلم