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 our irrigation. I have intercourse with her, but I dislike that she becomes pregnant."He replied, "Practice withdrawal with her if you wish, but whatever has been decreed for her will surely come to her."The man stayed away for a while, then returned to him and said, "The girl has become pregnant."He said, "I already told you that whatever has been decreed for her would come to her."

Azami 1094

Sahih

عن جابر

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

الأعظمي 1094صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
Every soul that will exist until the Day of Resurrection will surely exist
Numbering
Jami al-Kamil 1094 (2nd edition)
Azami 1094