Is a Child Conceived Before Nikah Legitimate if the Parents Marry Later?
Question
If I get pregnant before nikkah but we decide to do nikkah as soon as we find out about the pregnancy, will the child be halal and legitimate? Or is aborting it is suggested?
Islamic Ruling & Answer
First of all, it should be clearly understood that having sexual relations before Nikah is strictly prohibited in Islam and is considered a major sin known as zina (fornication/adultery). Allah ØĒؚاŲŲ has prohibited not only zina itself but even approaching anything that leads to it:
ī´ŋŲŲŲŲØ§ ØĒŲŲŲØąŲبŲŲØ§ Ø§ŲØ˛ŲŲŲŲŲ Û ØĨŲŲŲŲŲŲ ŲŲØ§ŲŲ ŲŲØ§ØŲØ´ŲØŠŲ ŲŲØŗŲØ§ØĄŲ ØŗŲØ¨ŲŲŲŲØ§ī´ž
âØ§ŲØą Ø˛Ųا ÚŠÛ ŲØąÛب Ø¨ÚžÛ ŲÛ ØŦØ§Ø¤Ø Ø¨Û Ø´ÚŠ ŲÛ Ø¨Û ØÛاØĻÛ ÚŠØ§ ÚŠØ§Ų Ø§ŲØą Ø¨ÛØĒ Ø¨ØąØ§ ØąØ§ØŗØĒÛ ÛÛÛâ
(ØŗŲØąÛ Ø§ŲØĨØŗØąØ§ØĄ: 32)
Likewise, the Messenger of Allah īˇē said:
ŲŲØ§ ŲŲØ˛ŲŲŲŲ Ø§ŲØ˛ŲŲØ§ŲŲŲ ØŲŲŲŲ ŲŲØ˛ŲŲŲŲ ŲŲŲŲŲŲ Ų ŲØ¤ŲŲ ŲŲŲÂģ
âØ˛ŲØ§ ÚŠØąŲÛ ŲØ§Ųا ØŦب Ø˛ŲØ§ ÚŠØąØĒا ÛÛ ØĒŲ Ø§Øŗ ŲŲØĒ ŲÛ ÚŠØ§Ų Ų Ø§ÛŲ Ø§Ų ÚŠÛ ØØ§ŲØĒ Ų ÛÚē ŲÛÛÚē ÛŲØĒØ§Ûâ
(ØĩØÛØ Ø§ŲØ¨ØŽØ§ØąÛØ ØĩØÛØ Ų ØŗŲŲ )
Therefore, if someone falls into this sin, they must sincerely repent to Allah, feel genuine remorse for what they have done, firmly resolve never to return to it, and if they intend to marry each other, they should perform a valid Nikah without unnecessary delay.
As for your actual question: if pregnancy occurs before Nikah and, upon discovering the pregnancy, the couple immediately performs a valid Nikah, this does not make abortion permissible or recommended. Merely becoming pregnant as a result of zina is not a valid Sharâi reason for abortion.
Regarding the child's lineage according to the Hanafi school, if the child is born at least six lunar months after the Nikah, the child will be attributed to the husband. However, if the child is born before six lunar months from the Nikah, the child's lineage will not be established to the husband. However, in such a case, if the man acknowledges that the child is his without explicitly stating that the child is from zina, then the child's lineage will also be established to him according to the legal ruling mentioned by the jurists.
It should also be remembered that the child bears no sin whatsoever for the actions of the parents. Islam does not permit treating such a child with contempt or depriving them of any of their legitimate rights.
Reference:
Ø§ŲØ¯Øą اŲŲ ØŽØĒØ§Øą ŲØØ§Ø´ŲØŠ Ø§Ø¨Ų ØšØ§Ø¨Ø¯ŲŲ (ØąØ¯ اŲŲ ØØĒØ§Øą) (3/49):
"ŲŲ ŲŲØŲØ§ Ø§ŲØ˛Ø§ŲŲ ØŲ ŲŲ ŲØˇØ¤Ųا اØĒŲØ§ŲØ§ŲØ ŲØ§ŲŲŲØ¯ ŲŲ ŲŲØ˛Ų Ų Ø§ŲŲŲŲØŠ.
(ŲŲŲŲ: ŲØ§ŲŲŲØ¯ ŲŲ) ØŖŲ ØĨŲ ØŦØ§ØĄØĒ بؚد اŲŲŲØ§Ø ŲØŗØĒØŠ ØŖØ´ŲØąØ Ų ØŽØĒØ§ØąØ§ØĒ اŲŲŲØ§Ø˛ŲØ ŲŲŲ ŲØŖŲŲ Ų Ų ØŗØĒØŠ ØŖØ´ŲØą Ų Ų ŲŲØĒ Ø§ŲŲŲØ§Ø ŲØ§ ŲØĢØ¨ØĒ اŲŲØŗØ¨Ø ŲŲØ§ ŲØąØĢ Ų ŲŲ ØĨŲØ§ ØŖŲ ŲŲŲŲ: ŲØ°Ø§ اŲŲŲØ¯ Ų ŲŲØ ŲŲØ§ ŲŲŲŲ: Ų Ų Ø§ŲØ˛ŲŲØ ؎اŲŲØŠ. ŲØ§ŲØ¸Ø§ŲØą ØŖŲ ŲØ°Ø§ Ų Ų ØŲØĢ اŲŲØļØ§ØĄØ ØŖŲ Ø§ Ų Ų ØŲØĢ Ø§ŲØ¯ŲØ§ŲØŠ ŲŲØ§ ŲØŦŲØ˛ ŲŲ ØŖŲ ŲØ¯ØšŲŲØ ŲØŖŲ Ø§ŲØ´ØąØš ŲØˇØš ŲØŗØ¨Ų Ų ŲŲØ ŲŲØ§ ŲØŲ ŲŲ Ø§ØŗØĒŲØØ§ŲŲ Ø¨ŲØ ŲŲØ°Ø§ ŲŲ ØĩØąØ Ø¨ØŖŲŲ Ų Ų Ø§ŲØ˛ŲŲ ŲØ§ ŲØĢØ¨ØĒ ŲØļØ§ØĄŲ ØŖŲØļØ§ŲØ ŲØĨŲŲ Ø§ ŲØĢØ¨ØĒ ŲŲ ŲŲ ŲØĩØąØØ ŲØ§ØØĒŲ Ø§Ų ŲŲŲŲ Ø¨ØšŲØ¯ ØŗØ§Ø¨Ų ØŖŲ Ø¨Ø´Ø¨ŲØŠ ØŲ ŲØ§Ų ŲØØ§Ų Ø§ŲŲ ØŗŲŲ ØšŲŲ Ø§ŲØĩŲØ§ØØ ŲŲØ°Ø§ ØĢØ¨ŲØĒŲ Ų ØˇŲŲØ§Ų ØĨذا ØŦØ§ØĄØĒ Ø¨Ų ŲØŗØĒØŠ ØŖØ´ŲØą Ų Ų Ø§ŲŲŲØ§ØØ ŲØ§ØØĒŲ Ø§Ų ØšŲŲŲŲ Ø¨ØšØ¯ Ø§ŲØšŲØ¯Ø ŲØŖŲ Ų Ø§ ŲØ¨Ų Ø§ŲØšŲد ŲØ§Ų Ø§ŲØĒŲØ§ØŽØ§Ų ŲØ§ ØŲ ŲØ§ŲØ ŲŲØØĒØ§Øˇ ŲŲ ØĨØĢباØĒ اŲŲØŗØ¨ Ų Ø§ ØŖŲ ŲŲ."
Answered by
Mufti Tosif Qasmi
June 30, 2026
Researched & verified under our editorial & answer-review policy.
Related Questions
Islamic rulling on online marriage
Ø˛ŲØ§ØŦ اŲŲ ØŗŲŲ ØŠ باŲŲ ØŗŲØŲ
ŲÛÚÛŲ Ø§ÛÚÛŲšŲÚ¯ Ų ÛÚē ØŦاØĻØ˛ Ø§ŲØą ŲØ§ØŦاØĻØ˛ ØĸŲØ§Ø˛ŲÚē ڊا ØÚŠŲ
Social media and Islamic rulling
ŲŲ ŲØĩØ¨Ø Ø§ŲØ˛ŲاØŦ ŲØ§ØŦØ¨ŲØ§ ØšŲŲ Ų Ø¯Ų Ų Ø§ŲØšØ§Ø¯ØŠ Ø§ŲØŗØąŲØŠ ØĨذا ŲØ§Ų ŲØ§Ø¯ØąŲا ØšŲŲŲØ
ØŲŲ Ų ØąØļØšØĒŲŲ ŲØ¨Ų Ø§ŲØŲŲŲŲ
Support AskMuftiOnline
Your contribution helps scholars answer more questions and keeps this platform free for everyone.
Contribute Now