Question: If a boy and a girl have sexual relations before marriage, can they marry each other afterwards?
Answer: There is no doubt that zina is a major sin. If a person commits this sin, then feels ashamed and repents to Allah the Almighty, Allah the Almighty says in the Qur’an about such a person:
«وَالَّذِينَ لَا يَدْعُونَ مَعَ اللَّهِ إِلَهًا آخَرَ وَلَا يَقْتُلُونَ النَّفْسَ الَّتِي حَرَّمَ اللَّهُ إِلَّا بِالْحَقِّ وَلَا يَزْنُونَ وَمَنْ يَفْعَلْ ذَلِكَ يَلْقَ أَثَامًا ﴿68﴾ يُضَاعَفْ لَهُ الْعَذَابُ يَوْمَ الْقِيَامَةِ وَيَخْلُدْ فِيهِ مُهَانًا ﴿69﴾ إِلَّا مَنْ تَابَ وَآمَنَ وَعَمِلَ عَمَلًا صَالِحًا فَأُولَئِكَ يُبَدِّلُ اللَّهُ سَيِّئَاتِهِمْ حَسَنَاتٍ وَكَانَ اللَّهُ غَفُورًا رَحِيمًا ﴿70﴾»
“And those who do not call upon any other deity along with Allah, and do not kill the soul which Allah has forbidden except by right, and do not commit zina; and whoever does this will meet the penalty. The punishment will be doubled for him on the Day of Resurrection, and he will remain in it humiliated. Except for those who repent and believe and do righteous deeds; for those, Allah will change their evil deeds into good deeds, and Allah is Forgiving and Merciful.”
From this noble verse we learn that if a person repents from zina, Allah the Almighty accepts his repentance. And when he has repented, and his case did not reach the ruler but Allah the Almighty concealed his sin, then his matter is with Allah the Almighty; the prescribed punishment (hadd) is not obligatory upon him in this world. As in the authentic hadith, Ubadah ibn al-Samit (may Allah be pleased with him) says: “The Prophet ﷺ took a pledge from some of his Companions to abstain from certain forbidden things. Zina was one of them. At the end he ﷺ said:
«فمن وفى منكم فاجره على الله، ومن اصاب من ذلك شيئا فعوقب فى الدنيا فهو كفارة له، ومن اصاب من ذلك شيئا ثم ستره الله فهو إلى الله إن شاء عفا عنه وإن شاء عاقبه»
Whoever fulfils the pledge, his reward is with Allah. And whoever falls into any of these things and is punished for it in this world, that will be an expiation for him. And if he commits any of these sins and Allah the Almighty conceals it, then it is up to Allah the Almighty: if He wishes, He will forgive him, and if He wishes, He will punish him.”
This hadith also shows that if a person commits zina or the like, but Allah the Almighty conceals it, then his matter is with Allah. Without his confession and insistence, the prescribed punishment will not be carried out on him in this world. Furthermore, if someone comes to know something about another Muslim that makes a prescribed punishment necessary upon him, the Prophet ﷺ commanded that it be pardoned among themselves.
He ﷺ said:
«تَعَافُّوا الْحُدُودَ فِيمَا بَيْنَكُمْ فَمَا بَلَغَنِي مِنْ حَدٍّ فَقَدْ وَجَبَ»
“Pardon the prescribed punishments among yourselves; whatever reaches me has become obligatory.”
Its meaning is that if it has not reached the imam, ruler or judge, the prescribed punishment has not become obligatory. In the case mentioned, the fornicator can marry the fornicatress without the prescribed punishment being applied, when both repent sincerely. It is narrated from Ibn Abbas (may Allah be pleased with them both) with an authentic chain that someone asked him:
«اني كنت الم بامراة اتي منها ما حرم الله عز و جل على فرزق الله من ذلك توبة فاردت ان تزوجها فقال الناس ان الزاني لا ينكح الا زانية او مشركة فقال ابن عباس رضى الله عنه عنهما ليس هذا فى هذا انكحها فما كان هنا فى هنا من اثم فعلي»
“I used to commit what is forbidden with a woman. Allah granted me the ability to repent of that act, and I repented. I intended to marry this woman, but people said: ‘The fornicator may marry only a fornicatress or a polytheist woman.'” Ibn Abbas (may Allah be pleased with them both) said: “This verse is not about this case, so marry her. If there is any sin in it, it is upon me.”
From this we learn that if a man and a woman who committed the immoral act repent, they can marry without the prescribed punishment, because Ibn Abbas (may Allah be pleased with them both) did not say: first have the prescribed punishment carried out, then marry. It should also be remembered that if the two were married at the time of pregnancy, that marriage will not be valid, because he married during the ‘iddah, and a marriage during the ‘iddah is not valid.
Allah the Almighty says:
«وَأُولاتُ الأحْمَالِ أَجَلُهُنَّ أَنْ يَضَعْنَ حَمْلَهُنَّ»
“The ‘iddah of pregnant women is until they deliver their burden.”
In another place He said:
«وَلَا تَعْزِمُوا عُقْدَةَ النِّكَاحِ حَتَّىٰ يَبْلُغَ الْكِتَابُ أَجَلَهُ»
“Do not resolve on the marriage contract until the prescribed term reaches its end.”
Hafiz Ibn Kathir (may Allah have mercy on him) says:
«قد اجمع العلماء على انه لا يصح العقد فى مدة العدة»
“The scholars have reached consensus that a marriage contract during the ‘iddah is not valid.”
Therefore, if the girl has become pregnant from the intercourse that took place before marriage, their marriage is not valid; rather, they should have married after delivery. So they should marry again. And if the girl was not pregnant at the time of marriage, then their marriage is completely valid, and it is not permissible to place any kind of blemish upon it.