We used to practice withdrawal during the time of the Messenger of Allah ﷺ. News of this reached the Prophet of Allah ﷺ, and he did not forbid us from doing so.
كنا نعزل على عهد رسول الله ﷺ، فبلغ ذلك نبي الله ﷺ فلم ينهنا.
Muslim narrated it in the Book of Nikah (1439: 138) from Abu Ghassan Musmai, who said, "Muaz bin Hisham narrated to us, my father narrated to me, from Abu Zubayr, from Jabir," and he related it.