صحيح البخاري
From Sahih Bukhari (Hadith 5207):
Narrated Jabir:We used to practice coitus interruptus during the lifetime of Allah's Messenger (ﷺ)
Reference: Bukhari 5207