Sahih Muslim
1440.02

Jabir (Allah be pleased with him) reported:We used to practise 'azl during the life of Allah's Messenger (ﷺ)