Sahih Muslim, Book 16, Hadith 162 (Muslim 3528)

Jabir (Allah be pleased with him) reported:

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