Abu Sa'id al-Khudri (RA) reported: We took women captives, and we wanted to do 'azl with them. We then asked Allah's Messenger (ﷺ) about it, and he said to us: Verily you do it, verily you do it, verily you do it, but the soul which has to be born until the Day of Judgment must be born.
Related hadith on this topic