Language:
كتاب البيوع
34  
Sales and Trade
(109)
Chapter: The sale of slaves
(109)
باب بَيْعِ الرَّقِيقِ
Sahih al-Bukhari 2229

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.

حَدَّثَنَا أَبُو الْيَمَانِ، أَخْبَرَنَا شُعَيْبٌ، عَنِ الزُّهْرِيِّ، قَالَ أَخْبَرَنِي ابْنُ مُحَيْرِيزٍ، أَنَّ أَبَا سَعِيدٍ الْخُدْرِيَّ ـ رضى الله عنه ـ أَخْبَرَهُ أَنَّهُ، بَيْنَمَا هُوَ جَالِسٌ عِنْدَ النَّبِيِّ صلى الله عليه وسلم قَالَ يَا رَسُولَ اللَّهِ إِنَّا نُصِيبُ سَبْيًا، فَنُحِبُّ الأَثْمَانَ، فَكَيْفَ تَرَى فِي الْعَزْلِ فَقَالَ ‏ "‏ أَوَإِنَّكُمْ تَفْعَلُونَ ذَلِكَ لاَ عَلَيْكُمْ أَنْ لاَ تَفْعَلُوا ذَلِكُمْ، فَإِنَّهَا لَيْسَتْ نَسَمَةٌ كَتَبَ اللَّهُ أَنْ تَخْرُجَ إِلاَّ هِيَ خَارِجَةٌ ‏"‏‏.‏
Reference : Sahih al-Bukhari 2229
In-book reference : Book 34, Hadith 176
USC-MSA web (English) reference : Vol. 3, Book 34, Hadith 432
  (deprecated numbering scheme)