2,737. Vowing by the Torah
Hilchos Nedarim 1:26
If one says, “Let it be to me like the vows of the evil…” or “like the pledges of the upright that I will eat of yours” or “if I eat of yours,” it is prohibited even though he wasn’t explicit. If he said “Like the vows of the upright,” his words are inconsequential because the upright don’t make vows of prohibition in anger. If he says, “I am like the vows of the evil” while a nazir was passing by, he must keep a nazirite vow. If he says: “I am responsible like the vows of the evil,” he must bring an offering. If he said, “Like the vows of the evil, I will not eat of it,” he is liable for an oath.
Hilchos Nedarim 1:27
If someone takes a vow by the Torah, saying, “This produce is to me like this,” his words are meaningless and a Torah scholar need not absolve him from a vow. However, we do make an unlearned person have it absolved so that he won’t get used to treating vows lightly.