A man asked the Messenger of Allah ﷺ about coitus interruptus, saying, "My wife is nursing, and I do not want her to become pregnant."The Prophet ﷺ replied, "Whatever has been decreed for the womb will surely come to pass."
أخبرنا محمد بن بشار عن محمد قال حدثنا شعبة عن أبي الفيض قال سمعت عبد الله بن مرة الزرقي
أن رجلا سأل رسول الله ﷺ عن العزل فقال إن امرأتي ترضع وأنا أكره أن تحمل فقال النبي ﷺ إن ما قد قدر في الرحم سيكون
[Its isnad is hasan] Ahmad narrated it: 3/450, from Muhammad, who is Ibn Jafar Ghundar, through him, and it is in Al-Kubra, no. 5487. Abul-Fayd Shami, his name is Musa bin Ayub, and he is the Hims-based one.