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

Abu Sa'id al-Khudri (Allah be pleased with him) reported that Allah's Messenger (ﷺ) was asked about 'azl, whereupon he said:

The child does not come from all the liquid (sermen) and when Allah intends to create anything nothing can prevent it (from coming into existence).
حَدَّثَنِي هَارُونُ بْنُ سَعِيدٍ الأَيْلِيُّ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ، أَخْبَرَنِي مُعَاوِيَةُ، - يَعْنِي ابْنَ صَالِحٍ - عَنْ عَلِيِّ بْنِ أَبِي طَلْحَةَ، عَنْ أَبِي الْوَدَّاكِ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، سَمِعَهُ يَقُولُ سُئِلَ رَسُولُ اللَّهِ صلى الله عليه وسلم عَنِ الْعَزْلِ فَقَالَ ‏ "‏ مَا مِنْ كُلِّ الْمَاءِ يَكُونُ الْوَلَدُ وَإِذَا أَرَادَ اللَّهُ خَلْقَ شَىْءٍ لَمْ يَمْنَعْهُ شَىْءٌ ‏"‏ ‏.‏
Reference : Sahih Muslim 1438k
In-book reference : Book 16, Hadith 156
USC-MSA web (English) reference : Book 8, Hadith 3381
  (deprecated numbering scheme)