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

Sahih Muslim Book 16 Hadith 163

Sahih Muslim #1440 b

The Book of Marriage 16:163

Jabir (Allah be pleased with him) reported:

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

Chapter: The ruling on coitus interrupts ('Azl)

Grade: Sahih