Pulling out which is called al azl in Arabic was discouraged by Prophet.
In one case when muslims went & captured women to keep them as concubines(sex slaves), his followers were hesitant to make them pregnant. so when asked to prophet, he clearly discouraged idea of al-azl. He didn't want his followers to pull out from captive women(sex slaves).
So prophet discouraged pulling out from sex slaves why would he wanted husbands to pull out from their wives? Logically it doesn't make sense? Isn't it ?
Reference for hadith in Sahih Muslim
https://sunnah.com/muslim:1438a
0 Abu Sa'id, did you hear Allah's Messenger (ﷺ) mentioning al-'azl? He said: Yes, and added: We went out with Allah's Messenger (ﷺ) on the expedition to the Bi'l-Mustaliq and took captive some excellent Arab women; and we desired them, for we were suffering from the absence of our wives, (but at the same time) we also desired ransom for them. So we decided to have sexual intercourse with them but by observing 'azl (Withdrawing the male sexual organ before emission of semen to avoid-conception). But we said: We are doing an act whereas Allah's Messenger is amongst us; why not ask him? So we asked Allah's Mes- senger (ﷺ), and he said: It does not matter if you do not do it, for every soul that is to be born up to the Day of Resurrection will be born.