Abu Saeed Khudri reported,

During the expedition against Banu Mustaliq, they captured female prisoners and wished to be intimate with them without causing them to become pregnant, so they asked the Prophet ﷺ about coitus interruptus. He said, "It does not matter whether you do so or not, for Allah has already decreed who is to be created until the Day of Resurrection."Mujahid reported from Qaza, "I heard Abu Saeed say that the Prophet ﷺ said, 'There is no soul to be created except that Allah is its Creator.'"

Bukhari 7409

Sahih

حدثنا إسحاق حدثنا عفان حدثنا وهيب حدثنا موسى هو ابن عقبة حدثني محمد بن يحيى بن حبان عن ابن محيريز

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

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

البخاري 7409صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
His saying, "He is Allah, the Creator, the Originator, the Fashioner"
Numbering
Darussalam 7409
Bukhari 7409