كتاب النكاح
16  
The Book of Marriage
(22)
Chapter: The ruling on coitus interrupts ('Azl)
(22)
باب حُكْمِ الْعَزْلِ ‏
Sahih Muslim 1439 b

Jabir b. 'Abdullah (Allah be pleased with them) reported that a person asked Allah's Apostle (ﷺ) saying:

I have a slave-girl and I practise 'azl with her, whereupon Allah's Messenger (ﷺ) said: This cannot prevent that which Allah has decreed. The person then came (after some time) and said: Messenger of Allah, the slave-girl about whom I talked to you has conceived, whereupon Allah's Messeuger (ﷺ) said: I am the servant of Allah and His Messenger.
حَدَّثَنَا سَعِيدُ بْنُ عَمْرٍو الأَشْعَثِيُّ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ سَعِيدِ بْنِ حَسَّانَ، عَنْ عُرْوَةَ بْنِ عِيَاضٍ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ، قَالَ سَأَلَ رَجُلٌ النَّبِيَّ صلى الله عليه وسلم فَقَالَ إِنَّ عِنْدِي جَارِيَةً لِي وَأَنَا أَعْزِلُ عَنْهَا ‏.‏ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ إِنَّ ذَلِكَ لَنْ يَمْنَعَ شَيْئًا أَرَادَهُ اللَّهُ ‏"‏ ‏.‏ قَالَ فَجَاءَ الرَّجُلُ فَقَالَ يَا رَسُولَ اللَّهِ إِنَّ الْجَارِيَةَ الَّتِي كُنْتُ ذَكَرْتُهَا لَكَ حَمَلَتْ ‏.‏ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ أَنَا عَبْدُ اللَّهِ وَرَسُولُهُ‏"‏ ‏.‏
Reference : Sahih Muslim 1439b
In-book reference : Book 16, Hadith 159
USC-MSA web (English) reference : Book 8, Hadith 3384
  (deprecated numbering scheme)