A man came to the Prophet ﷺ and said, "I have a slave girl, and I practice withdrawal with her."The Prophet ﷺ said to him, "Whatever is destined will come to be."Not long after, she became pregnant. So he came to the Prophet ﷺ and said, "Prophet of Allah, do you not see that she has become pregnant?"The Prophet ﷺ replied, "No soul that Allah has decreed to come into existence will fail to come into being."
حدثنا عبد الرزاق أخبرنا سفيان عن الأعمش ومنصور عن سالم بن أبي الجعد
جاء رجل إلى النبي ﷺ فقال إن لي جارية وأنا أعزل عنها فقال له ما يقدر يكن فلم يلبث أن حملت فجاء إلى النبي ﷺ فقال يا نبي الله ألم تر أنها حملت فقال النبي ﷺ ما قضى الله لنفس أن تخرج إلا هي كائنة
Its isnad is sahih, and by the same route it was mentioned earlier under 15078.