Muwatta Malik, Book 29, Hadith 95 (USC-MSA)

Yahya related to me from Malik from Rabia ibn Abi Abd ar-Rahman from Muhammad ibn Yahya ibn Habban that Ibn Muhayriz said, "I went into the mosque and saw Abu Said al-Khudri and so I sat by him and asked him about coitus interruptus. Abu Said al-Khudri said, 'We went out with the Messenger of Allah, may Allah bless him and grant him peace, on the expedition to the Banu al-Mustaliq. We took some Arabs prisoner, and we desired the women as celibacy was hard for us. We wanted the ransom, so we wanted to practise coitus interruptus. We said, 'Shall we practise coitus interruptus while the Messenger of Allah, may Allah bless him and grant him peace, is among us before we ask him?' We asked him about that and he said, 'You don't have to not do it. There is no self which is to come into existence up to the Day of Rising but that it will come into existence.' "

حَدَّثَنِي يَحْيَى، عَنْ مَالِكٍ، عَنْ رَبِيعَةَ بْنِ أَبِي عَبْدِ الرَّحْمَنِ، عَنْ مُحَمَّدِ بْنِ يَحْيَى بْنِ حَبَّانَ، عَنِ ابْنِ مُحَيْرِيزٍ، أَنَّهُ قَالَ دَخَلْتُ الْمَسْجِدَ فَرَأَيْتُ أَبَا سَعِيدٍ الْخُدْرِيَّ فَجَلَسْتُ إِلَيْهِ فَسَأَلْتُهُ عَنِ الْعَزْلِ، فَقَالَ أَبُو سَعِيدٍ الْخُدْرِيُّ خَرَجْنَا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم فِي غَزْوَةِ بَنِي الْمُصْطَلِقِ فَأَصَبْنَا سَبْيًا مِنْ سَبْىِ الْعَرَبِ فَاشْتَهَيْنَا النِّسَاءَ وَاشْتَدَّتْ عَلَيْنَا الْعُزْبَةُ وَأَحْبَبْنَا الْفِدَاءَ فَأَرَدْنَا أَنْ نَعْزِلَ فَقُلْنَا نَعْزِلُ وَرَسُولُ اللَّهِ صلى الله عليه وسلم بَيْنَ أَظْهُرِنَا قَبْلَ أَنْ نَسْأَلَهُ ‏.‏ فَسَأَلْنَاهُ عَنْ ذَلِكَ فَقَالَ ‏ "‏ مَا عَلَيْكُمْ أَنْ لاَ تَفْعَلُوا مَا مِنْ نَسَمَةٍ كَائِنَةٍ إِلَى يَوْمِ الْقِيَامَةِ إِلاَّ وَهِيَ كَائِنَةٌ ‏" ‏ ‏.‏

sunnah.com

also referenced under: Book 29, Hadith 1260 (In-Book)