Abu Saeed Khudri reported,

He reported that while he was sitting with the Prophet ﷺ, a man from the Ansar came and said, "Messenger of Allah, we capture female prisoners and we desire wealth. What is your view on coitus interruptus?"The Messenger of Allah ﷺ replied, "Do you really do that? It does not matter whether you do it or not, for there is no soul that Allah has decreed to come into existence except that it will come to be."

Bukhari 6603

Sahih

حدثنا حبان بن موسى أخبرنا عبد الله أخبرنا يونس عن الزهري قال أخبرني عبد الله بن محيريز الجمحي أن

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

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

البخاري 6603صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Decree
Chapter
And the command of Allah is a decree determined
Numbering
Darussalam 6603
Bukhari 6603