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.
Your saying “I promised to Allah to leave such and such an act…” is considered an oath and it leads to the consequences that result from breaking an oath. Therefore, if one does what he promised Allah not to do, then he is obliged to expiate for breaking an oath.
If the promise and breaking the promise is repeated before expiating for breaking the first oath, then it is only one expiation that is required.
Since you write to us in Arabic sometimes, then we refer you to Fatwa 135742 in our Arabic Site.
Also, for more benefit, please refer to Fataawa 367117, 356647, 102811, 138168, and 96130, in our English Site.
Allah knows best.