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, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
We do not know what you mean by "three divorces", if you refer to the words of divorce which you mentioned when you were arguing with your wife, then the matter needs to be detailed. Your statement, ''I am going to divorce you,'' is a promise of divorce and it is not considered a divorce, but your second statement, ''I have given you a divorce,” is a divorce. As regards your statements after that, "It is over", "It is finished" then these two expressions are among the metaphors of divorce and are not considered as divorce unless you intended it to be so. So, if you intended one divorce by saying so, then your wife is divorced twice and the divorce is still revocable. However, if by saying, "It is over", "It is finished", you wanted to initiate three divorces, then the divorce is irrevocable.
Some jurists stated that whoever says to his wife, "There is no marriage between me and you," and intended divorce by saying so, then divorce has taken place.
The Indian Encyclopaedia [Hanafi school of jurisprudence] reads, "If the husband says to his wife, ‘There is no marriage between me and you’, or says, ‘We are no longer married,’ and intended divorce, then divorce has taken place." According to the Maaliki school of jurisprudence, such a statement is considered as three divorces if one had already consummated the marriage with his wife. The husband saying to his wife, "It is over" is like saying to her, "There is no marriage between me and you."
Based on the above grounds, you are obliged to separate from this woman, and it is not permissible for you to remarry her until she marries another man who consummates the marriage with her and then divorces her or dies.
If you had any children with her [after you mentioned the above expressions of divorce to her] then they will be traced back to you according to the view of the majority of the scholars . However, some of them are of the view that the wife does not become forbidden to her husband if he divorced her three times with the same statement and in the same session; this is the view of Ibn Taymiyyah .
Finally, you are obliged to repent for changing your statements with the Mufti so that he would declare that your wife is not forbidden to you, as you were obliged to tell him the truth.
Allaah Knows best.