Praise be to Allah.
Undoubtedly this husband – if he really did that – is mistreating his wife, depriving her of her rights, and going against what Allah, may He be exalted, has enjoined upon him of treating her in a good manner. He should have been kind to his wife and given her her rights in full, and if he disliked her, he should have parted with her in a good manner, in obedience to the words of Allah (interpretation of the meaning): “either take them back in a good manner or part with them in a good manner” [at-Talaaq 65:2]. This husband is not keeping her in a good manner, because he is mistreating his wife, transgressing against her and wasting her money. And he is not parting with her in a good manner, because what he should have done, if he wanted to separate from her, is to give his wife her rights in full with regard to the mahr. But he harmed her and put pressure on her, and he withheld her rights from her – without her deserving any such treatment – until she ransoms herself from him. Allah, may He be exalted, has forbidden such reprehensible conduct in the verse in which He says (interpretation of the meaning):
“O you who believe! You are forbidden to inherit women against their will, and you should not treat them with harshness, that you may take away part of the Mahr you have given them, unless they commit open illegal sexual intercourse. And live with them honourably. If you dislike them, it may be that you dislike a thing and Allah brings through it a great deal of good”
This talaaq that has been given by this husband is called a “talaaq in return for letting the husband off the mahr or some other obligation”; it is a kind of khula‘, as was explained in fatwa no. 198920
The fuqaha’ differed as to the definition of a khula‘ or “talaaq in return for letting the husband off the mahr or some other obligation”. According to the majority of fuqaha’, it is an irrevocable talaaq. Al-Khurashi al-Maaliki said: An irrevocable talaaq can only come about using words that signal khula‘, “talaaq in return for letting the husband off the mahr or some other obligation”, ransom or talaaq with monetary payment.
End quote from Sharh Mukhtasar Khaleel by al-Khurashi, 4/17
One of the rulings on talaaq in return for payment is that the husband does not have the right to take the wife back during the ‘iddah. It says in al-Mawsoo‘ah al-Fiqhiyyah al-Kuwaitiyyah (22/108), when mentioning the conditions on taking the wife back:
The fifth condition: that the talaaq should not be in return for compensation. If the talaaq is in return for compensation, then it is not valid to take the wife back, because in that case the talaaq is irrevocable, because the woman has ransomed herself from the husband by means of the financial compensation that she gave him, which ended this relationship, as in the case of khula‘ and talaaq in return for money. End quote.
A number of scholars are of the view that khula‘ – along with “talaaq in return for letting the husband off the mahr or some other obligation” – is an annulment of the marriage and not a talaaq. This is the more correct view, as we have explained in fatwa no. 126444
According to this more correct view, what happened with this man is an annulment and is not a talaaq at all. Hence he has no right to take back the wife from whom he separated by khula‘ during the ‘iddah. If he wants to marry her again, then he may do so, with a new marriage contract and mahr, if she herself agrees to that.
Once it is proven that what happened comes under the heading of khula‘, then it does not matter whether it happened during menses or during a period of purity in which he had had intercourse with her, because the correct scholarly view is that there is nothing wrong with khula‘ during menses or during a period of purity in which intercourse took place.
It says in al-Mughni by Ibn Qudaamah (7/324): There is nothing wrong with khula‘ during menses or during a period of purity in which he had intercourse with her, because the prohibition on talaaq during menses is because of the harm that will affect her as a result of making the ‘iddah longer, whereas khula‘ is aimed at removing the harm that affects her because of the husband's bad treatment and staying with someone whom she dislikes, which is worse than the harm caused by extending the length of the ‘iddah. Hence it is permissible to ward off the greater harm by means of the lesser. For this reason the Prophet (blessings and peace of Allah be upon him) did not ask the woman who was separated by means of khula‘ about her condition. Moreover, the harm caused by extending the length of the ‘iddah affects her, whereas khula‘ occurs at her request, which signals that she approves of it and indicates that it is most likely in her best interests. End quote.
This issue has been discussed in detail in fatwa no. 186809
With regard to the mahr that was given up by the wife, she does not have the right to change her mind, because she gave it up by choice after the husband offered to give her a talaaq in return for giving up the mahr, and she agreed to that. She could have refused and referred the matter to the shar‘i judge (qaadi) to make him divorce her (talaaq) because of the harm she was suffering. In that case she could have gotten her rights in full.
With regard to the husband’s denial of this pregnancy and saying “I do not have a child from her,” this is reprehensible and is a false statement; there is a fear that he may come under the warning mentioned in the hadeeth in which the Prophet (blessings and peace of Allah be upon him) said: “Any man who denies his child whilst he is looking at him, will be obstructed from Allah, and Allah will disgrace him before all of creation, the first and the last of them.” Narrated by Abu Dawood, 2263; Ibn Maajah, 2743; classed as da‘eef by al-Albaani in as-Silsilah ad-Da‘eefah, 1427
The fuqaha’ (may Allah have mercy on them) stated that any child born to a woman six months or more after the marriage contract, when it is possible that intercourse may have taken place thereafter, is to be attributed to the husband.
The basic principle concerning that is the words of the Prophet (blessings and peace of Allah be upon him): “The child is for the (owner of the) bed and the fornicator gets nothing.”
Narrated by al-Bukhaari, 2053; Muslim, 1457.
An-Nawawi (may Allah have mercy on him) said: As for the words of the Prophet (blessings and peace of Allah be upon him), “The child is for the (owner of the) bed”, what is meant is that if the man has a wife or a slave woman who has become his concubine, and she gives birth to a child within the timeframe during which it is feasible that it could be his child, the child is to be attributed to him and becomes his child; they may inherit from one another and all the other rulings stemming from birth are applicable to them.
End quote from Sharh an-Nawawi ‘ala Muslim, 10/37
With regard to what he has written, or even if she or her guardians wrote it, stating that he has no child from her, this is idle talk which is worthless and has no impact. If it so happened that he did not have a child from her at the time of writing, and her pregnancy was not known then, this does not mean that she did not bear him a child who was born after that, within the timeframe of feasibility, as mentioned above. It is not permissible for him to deny the child and it is not permissible either for her to conceal what Allah created in her womb from her husband, even if she hates him.
And Allah knows best.