I was faced with a pretty difficult affliction a couple of weeks ago, and I made a promise to God that if he removes the affliction, I will stay away from a certain halal act.

Now alhamdulillah the affliction is gone, but I was wondering if I need to keep my promise? I know that sounds like a dumb question, but I’m just doubting whether I unnecessarily imposed a tough condition on myself. The halal act was keeping me away from haram so logically I don’t see why God would have too much of a problem with it.

It depends on what the halal act is. If it’s a makrouh halal act (like overeating) then yes your vow would be valid. But if it’s a halal act that’s recommended generally it won’t be a valid vow. Now if it’s a neutral act and it keeps you away from haram, then keep your promise because it’s serving a good purpose.