The Book of Marriage (Kitab Al-Nikah)

Muslim :: Book 8 : Hadith 3383

Jabir (Allah be pleased with him) reported that a man came to Allah's Messenger (may peace be upon him) and said: I have a slave-girl who is our servant and she carries water for us and I have intercourse with her, but I do not want her to conceive. He said: Practise 'azl, if you so like, but what is decreed for her will come to her. The person stayed back (for some time) and then came and said: The girl has become pregnant, whereupon he said: I told you what was decreed for her would come to her.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star