The Book of Marriage
كتاب النكاح
Chapter 22: The ruling on coitus interrupts ('Azl)
A person came to Allah's Apostle (the rest of the hadith is the same).
We used to practise 'azl while the Qur'an was revealed (during the days when the Prophet was alive).
We used to practise 'azl during the life of Allah's Messenger (ﷺ).
We used to practise 'azl during the lifetime of Allah's Messenger (ﷺ). This (the news of this practise) reached Allah's Apostle (ﷺ), and he did not forbid us.
Chapter 23: The prohibition of intercourse with a pregnant captive woman
Perhaps he (the man accompanying her) intends to cohabit with her. They said: Yes. Thereupon Allah's Messenger (ﷺ) said: I have decided to curse him with such a curse as may go along with him to his grave. How can he own him (the child to be born) and that is not lawful for him, and how can he take him as a servant for that is not lawful for him?
A hadith like this has been transmitted on the authority of Shu'ba.
Chapter 24: It is permissible to have intercourse with a breastfeeding woman (Ghilah), and 'Azl is disliked
I intended to prohibit cohabitation with a suckling woman until I considered that the Romans and the Persians do it without any injury being caused to their children thereby. (Imam Muslim said: Khalaf reported it from Judamat al-'Asadiyya, but the correct wording is what has been stated by Yahya.)
I went to Allah's Messenger (ﷺ) along with some persons and he was saying: I intended to prohibit cohabitation with the suckling women, but I considered the Greeks and Persians, and saw that they suckle their children and this thing (cohabitation) does not do any harm to them (to the suckling women). Then they asked him about 'azl, whereupon he said. That is the secret (way of) burying alive, and Ubaidullah has made this addition in the hadith transmitted by al-Muqri and that is:" When the one buried alive is asked."
I heard Allah's Messenger (ﷺ) saying this. The rest of the hadith is the same concerning 'azl and ghila (cohabitating with a suckling woman), but with a slight variation of words.
I do 'azi with my wife. Thereupon Allah's Messenger (ﷺ) said: Why do you do that? The person said: I fear harm to her child or her children. Thereupon Allah's Messenger (way peace be upon him) said: If that were harmful it would harm the Persians and the Greeks.