Language:
كتاب النكاح
67  
Wedlock, Marriage (Nikaah)
(97)
Chapter: The coitus interruptus
(96)
باب الْعَزْلِ
Sahih al-Bukhari 5210

Narrated Abu Sa`id Al-Khudri:

We got female captives in the war booty and we used to do coitus interruptus with them. So we asked Allah's Messenger (ﷺ) about it and he said, "Do you really do that?" repeating the question thrice, "There is no soul that is destined to exist but will come into existence, till the Day of Resurrection."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدِ بْنِ أَسْمَاءَ، حَدَّثَنَا جُوَيْرِيَةُ، عَنْ مَالِكِ بْنِ أَنَسٍ، عَنِ الزُّهْرِيِّ، عَنِ ابْنِ مُحَيْرِيزٍ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، قَالَ أَصَبْنَا سَبْيًا فَكُنَّا نَعْزِلُ فَسَأَلْنَا رَسُولَ اللَّهِ صلى الله عليه وسلم فَقَالَ ‏ "‏ أَوَإِنَّكُمْ لَتَفْعَلُونَ قَالَهَا ثَلاَثًا مَا مِنْ نَسَمَةٍ كَائِنَةٍ إِلَى يَوْمِ الْقِيَامَةِ إِلاَّ هِيَ كَائِنَةٌ ‏"‏‏.‏
Reference : Sahih al-Bukhari 5210
In-book reference : Book 67, Hadith 143
USC-MSA web (English) reference : Vol. 7, Book 62, Hadith 137
  (deprecated numbering scheme)