All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallaahu ʻalayhi wa sallam, is His slave and Messenger.
What happened between you and this man is not a valid marriage according to the general majority of scholars, and the divorce is not valid. The only scholar who was quoted to have said that a marriage contract without the Wali and witnesses is valid is Daawood Ath-Thaahiri. We believe – and Allah knows best – that it is not justifiable to follow his opinion in this regard. Ibn Hajar,
, said, “It is impermissible to follow the opinion of Daawood regarding the marriage without the Wali and witnesses.” [Al-Fataawa Al-Fiqhiyyah Al-Kubra 4/105]
As for the validity of the divorce in a disputed marriage, the scholars held different opinions in this regard. However, as for the marriage that is unanimously ruled as invalid, the scholars held that divorce does not take effect in it. Al-Mardaawi,
, said, “The apparent indication of the author's statement is that divorce does not take effect in the case of a marriage that is ruled as invalid by the consensus of the scholars. This view is sound, and it is the chosen view of the majority of the Hanbali scholars, and many of them decisively stated that it is the correct view in this regard. It was also reported from him (Imaam Ahmad) that divorce takes effect; and this opinion was chosen by Abu Bakr in (his book) At-Tanbeeh.” [Al-Insaaf, 8/328]
That a divorce is invalid means that it is not taken into consideration and does not have any legal implications.
Allah knows best.