Swearing Upon Allah To Leave An Addictive Sin
There is no problem with it. However, one should avoid swearing frequently. It is something serious.