Answer
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
It is permissible to engage in coitus interruptus if a person does not want to have a child, and it is also permissible to use a condom, but that is subject to the condition that the wife gives her permission for that, because she has the right to full enjoyment and also to have a child.
Answering your question, the Fatwa Center at Islam Q and A, states:
It is permissible to engage in coitus interruptus if a person does not want to have a child, and it is also permissible to use a condom, but that is subject to the condition that the wife gives her permission for that, because she has the right to full enjoyment and also to have a child.
The evidence for that is the hadith of Jabir ibn ‘Abd-Allah (may Allah be pleased with him) who said: We used to engage in coitus interruptus at the time of the Messenger of Allah (peace be upon him). News of that reached the Messenger of Allah and he did not forbid us to do that. (Al-Bukhari and Muslim)
Although that is permitted, it is nevertheless makruh and intensely disliked. Muslim narrated that the Prophet (peace be upon him) was asked about coitus interruptus and he said: “That is the secret burying alive of infants.” This indicates that it is strongly disliked.
Al-Nawawi said:
“Coitus interruptus means intercourse in which, when ejaculation approaches, the man withdraws and ejaculates outside the vagina. It is makruh in our view in all circumstances and with all women, whether the woman consents to that or not, because it is a means of preventing offspring.
Hence in the hadith it is called “the secret burying alive of children,” because it cuts off the means of producing offspring, like killing a newborn by burying him or her alive. With regard to it being haram, our companions said that it was not forbidden.
These hadiths and others, when taken in conjunction, may be understood as meaning that it is makruh, but not strongly so, and the reports in which permission is given for that may be understood as meaning that it is not haram; they do not mean that it is not makruh.”
It is better for the Muslim not to do that, unless there is a need for it, such as if the woman is sick and cannot cope with a pregnancy or it would be too difficult for her or would cause her harm. Also, coitus interruptus cancels out one of the purposes of marriage, which is to have a lot of children, and it also means that the woman’s pleasure is incomplete.
Almighty Allah knows best.
Source: https://islamqa.info/en/12529