Sahih al-Bukhari, Volume 7, Book 62, Hadith 136 (USC-MSA)

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.

حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ، حَدَّثَنَا سُفْيَانُ، قَالَ عَمْرٌو أَخْبَرَنِي عَطَاءٌ، سَمِعَ جَابِرًا، رضى الله عنه قَالَ كُنَّا نَعْزِلُ وَالْقُرْآنُ يَنْزِلُ‏.‏ وَعَنْ عَمْرٍو، عَنْ عَطَاءٍ، عَنْ جَابِرٍ، قَالَ كُنَّا نَعْزِلُ عَلَى عَهْدِ النَّبِيِّ صلى الله عليه وسلم وَالْقُرْآنُ يَنْزِلُ‏.‏

sunnah.com