Hadithcore
Sahih Muslim, 1440 b
sahih

Jabir (Allah be pleased with him) reported:

We used to practise 'azl during the life of Allah's Messenger (ﷺ).

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

References2 variants
In-Book Reference
Book 16, Hadith 162
USC-MSA web (English) reference
Book 8, Hadith 3387 (deprecated numbering scheme)