Answer
(Fatwa: 1135/658/D=1432)
(1) It was good that you felt regretful. May you feel severity of this sin fully!
(2) You should completely end your relation from the woman. Also, avoid confronting her and meeting her. Do not talk her except in exigent needs. Although in the said situation of pregnancy it is allowable to abort it, but when the woman is not ready, how will you compel her?
(3) In future, you should completely avoid meeting and talking any strange woman in privacy and confronting without a need. Do tauba and istighfar sincerely before Almighty Allah and weep bitterly. It is hoped that Allah the Almighty will forgive you. But this is not a minor sin. The punishment of this sin in this world is stoning to death. If the punishment of this sin cannot be implemented, then too no concession would occur in the severity of it. You should try to pass your life with full firmness in iman and stability in good deeds and hatred towards sins and its aides, and give up passing free and careless life.
(4) Though the child is born or not, you have committed the crime. Now there is no way except tauba and istighfar. There is no other way to save yourself from the punishment of the hereafter except it. But the condition is that your tauba should be genuine and true not formal and temporary one.
(5) If the child is born, leave the matter on Allah and supplicate for his hidayah (guidance) and iman. However, he shall not be your real child but dua may be done for anyone.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband