Sahih al-Bukhari, Book 67, Hadith 142 (Bukhari 5000)

Narrated Jabir:

We used to practice coitus interrupt us while the Qur'an was being revealed. Jabir added: We used to practice coitus interrupt us during the lifetime of Allah's Messenger (ﷺ) while the Qur'an was being Revealed.