Sahih al-Bukhari 2229
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَوَإِنَّكُمْ تَفْعَلُونَ ذَلِكَ لاَ عَلَيْكُمْ أَنْ لاَ تَفْعَلُوا ذَلِكُمْ، فَإِنَّهَا لَيْسَتْ نَسَمَةٌ كَتَبَ اللَّهُ أَنْ تَخْرُجَ إِلاَّ هِيَ خَارِجَةٌ "
Narrated Abu Sa`id Al-Khudri:
that while he was sitting with Allah's Messenger (ﷺ) he said, "O Allah's Messenger (ﷺ)! We get female captives as our share of booty, and we are interested in their prices, what is your opinion about coitus interrupt us?" The Prophet (ﷺ) said, "Do you really do that? It is better for you not to do it. No soul that which Allah has destined to exist, but will surely come into existence.
Full reference and source
Sahih al-Bukhari 2229 In-book : Book 34, Hadith 176 USC-MSA web (English) : Vol. 3, Book 34, Hadith 432 (deprecated)
View source on Sunnah.com (opens in a new tab)