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.” (Using translation from Abū Dāʾūd 2173)
أَنَّ رَجُلًا أَتَى النَّبِيَّ ﷺ فَقَالَ إِنَّ لِي جَارِيَةً وَهِيَ خَادِمَتُنَا وَسَانِيَتُنَا وَأَنَا أَطُوفُ عَلَيْهَا وَأَنَا أَكْرَهُ أَنْ تَحْمِلَ فَقَالَ اعْزِلْ عَنْهَا إِنْ شِئْتَ فَإِنَّهُ سَيَأْتِيهَا مَا قُدِّرَ لَهَا فَلَبِثَ الرَّجُلُ ثُمَّ أَتَاهُ فَقَالَ إِنَّ الْجَارِيَةَ قَدْ حَمَلَتْ فَقَالَ أَخْبَرْتُكَ أَنَّهُ سَيَأْتِيهَا مَا قُدِّرَ لَهَا