Sahih al Bukhari
5207

Narrated Jabir:We used to practice coitus interruptus during the lifetime of Allah's Messenger (ﷺ)