Jabir bin Abdullah reported,

A man came to the Messenger of Allah ﷺ and said, "I have a slave girl who is our servant and the one who draws water for us. I have intercourse with her, but I do not want her to become pregnant."He replied, "Practice withdrawal from her if you wish, but whatever has been decreed for her will still come to her."The man stayed away for a time, then returned and said, "The slave girl has become pregnant."He said, "I already told you that whatever has been decreed for her would come to her."

Azami 6373

Sahih

عن جابر بن عبد الله

أن رجلا أتى رسول الله ﷺ فقال: إن لي جارية هي خادمنا وسانيتنا، وأنا أطوف عليها، وأنا أكره أن تحمل؟ فقال: اعزل عنها إن شئت، فإنه سيأتيها ما قدر لها، فلبث الرجل ثم أتاه فقال: إن الجارية قد حبلت؟ فقال: قد أخبرتك أنه سيأتيها ما قدر لها.

الأعظمي 6373صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Rights and duties of the Muslim woman, and good treatment of her
Section
Withdrawal
Numbering
Jami al-Kamil 6373 (2nd edition)
Azami 6373