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 is His slave and Messenger.
First of all, we thank you for contacting us and ask Allah to spare us and you from every affliction. Perhaps what happened to you was because of this sin – gambling – but you did not mention to us whether or not you repented from it. If you have not done so yet, then you must hasten to make sincere repentance. We have highlighted the conditions of repentance in fatwa 86527.
Mere anger and bad temper do not prevent divorce from taking place. So the ruling on this conditional divorce depends on the extent of your consciousness when uttering it. If you had uttered it while you were conscious of what you were saying, then such an utterance leads to its effects, otherwise not. Please refer to fatwa 121374 in this regard.
If we assume that you had uttered the divorce while you were conscious, then, according to the view of the majority of the scholars, the conditional divorce takes place when the matter upon which the husband conditioned divorce takes place, regardless of whether he had intended divorce or not.
Shaykh Ibn Taymiyyah chose the view that divorce does not take place if the husband only intended to make a threat or prevent something from happening and the like, and that this only requires an expiation for breaking an oath.
The view that we adopt here at Islamweb is the view of the majority of the scholars.
Perhaps the different fatwas issued to you by various scholars is due to the difference of opinion that we mentioned above. Hence, it is sufficient for you to act according to the fatwa of the scholar whom you consider to be most trustworthy, and do not keep moving from one scholar to another, as this leads to confusion.
Finally, it should be noted that if the husband said to his wife, ‘you will be divorced’, then if he intended the promise of divorce, then divorce does not take place (please, refer to fatwas 90318 and 89065), but if he intended a conditional divorce, then the ruling is as we have already mentioned to you.
Allah knows best.