Swearing to divorce one's wife with the intention of threatening her

Q 3: One day a street vender who sells clothes came to my house. As this entails great danger, I forbade my wife from buying clothes from such people. While we were discussing the matter, I swore to divorce her. I said, "If you do this again (buy clothes from a street vender), I swear to divorce you and will be kicked out of the house." (Part No. 20; Page No. 181) My intention was to threaten her only, not to divorce her. Many months later, I noticed a piece of clothing that I did not buy. When I asked her about it, she told me that she had bought it from a street vender, and that she forgot the oath I had made. What should I do in this situation?

A: Divorce does not take place if your intention was to threaten her only as you say. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.