All perfect praise be to Allaah, The Lord of the worlds. I testify that there is none worthy of worship except Allaah and that Muhammad is His slave and Messenger.
The dominant opinion among the scholars is that a marriage contract without the bride's guardian is invalid. This is the opinion of the majority of the scholars, contrary to the opinion of Imaam Abu Haneefah. However, if the judge who conducted their marriage contract was in a sharee'ah court (not a civil court), then the marriage contract is valid, as has previously been explained in fataawa 89782 and 130284. In this case, the child born to them is attributed to the husband. The actions of a sharee'ah judge are considered valid until proven otherwise. Therefore, his judgment is not invalidated except if there is a valid reason. The Shaafi'i scholar As-Subki said in his Fataawa, "The affirmed rule is that the judgment of a ruler is not undermined except if it violates a religious text or the consensus of scholars or explicit analogy..."
Even if we assume that the marriage is defective (Faasid), then the child is still attributed to the husband because they mistakenly believed that their marriage was lawful, as has previously been highlighted in fatwa 84811. In case of a defective marriage, the marriage should be terminated either through a legal annulment or by the husband issueing a divorce. If the spouses wish to continue to be married, then they have to conduct a new marriage contract with the permission of the bride's guardian. Her guardian does not have the right to refuse to marry her off (to a suitable suitor) except for a valid reason; otherwise, it would be injustice on his part. In such a case, she should refer her case to the judge in the sharee'ah court or whoever is acting on his behalf to marry her off instead or appoint someone else to marry her off and act as her guardian in the marriage contract.
There is no doubt that this girl did wrong by running away with this man; however, her father should forgive her mistake. Please refer to fatwa 84351.
Lastly, it should be noted that it is wrong to believe that the affliction that befell this man was a punishment for his sins; this is a matter of the Unseen, and the knowledge of such matters belongs to Allaah alone. The calamities that befall the individual may be afflictions meant as a trial from Allaah and not necessarily a punishment for a sin. If this man is still committing such sins, then he should gently be advised and urged to repent to Allaah of them.
Allaah knows best.