Sunan Abi Dawud, Hadith 2168

Jabir said “A man from the Ansar came to the Apostle of Allaah and said “I have a slave girl and I have intercourse with her. But I dislike her to conceive. He replied “Withdraw your penis from her if you wish for what is decreed for her will come to her.” After a time the man came to him and said “The girl has become pregnant”. He said “I told you that what was decreed for her would come to her.”

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

sunnah.com

also referenced under: Hadith 2173 (DarusSalam)