Ibn Muhayriz reported,

I saw Abu Saeed رضي الله عنه and asked him, and he said, "We went out with the Messenger of Allah ﷺ on the expedition of Banu Mustaliq. We captured some Arab prisoners and desired the women, as celibacy had become difficult for us. We wished to practice withdrawal, so we asked the Messenger of Allah ﷺ about it.He said, 'It does not matter whether you do so or not, for there is no soul destined to come into existence until the Day of Resurrection that will not come into existence.'"

Bukhari 2542

Sahih

حدثنا عبد الله بن يوسف أخبرنا مالك عن ربيعة بن أبي عبد الرحمن عن محمد بن يحيى بن حبان

عن ابن محيريز قال

رأيت أبا سعيد رضي الله عنه فسألته فقال خرجنا مع رسول الله ﷺ في غزوة بني المصطلق فأصبنا سبيا من سبي العرب فاشتهينا النساء فاشتدت علينا العزبة وأحببنا العزل فسألنا رسول الله ﷺ فقال ما عليكم أن لا تفعلوا ما من نسمة كائنة إلى يوم القيامة إلا وهي كائنة

البخاري 2542صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Emancipation of slaves
Chapter
Those among the Arabs who owned slaves, so he gave them as gifts, sold them, had intercourse with them, ransomed them, and took offspring as captives
Numbering
Darussalam 2542
Bukhari 2542