Question:
Are you allowed to make a promise to Hashem? Saying, if something works out, then I’ll give “this” up for you.
Answer:
Hello,
There is such a concept, especially during a period of difficulty. It should however be stipulated that you are gfoing to do such and such, however without it becoming a neder (vow).
Best wishes
Sources: