A person is held accountable by his final words
The last things a person said are those that matter or obligate him.
("A person is held accountable by his final words. For if it were Rabbi Meir, he said: Take the first expression" - Pesachim 59b)
Translation
Expression (Hebrew)
בִּגְמַר דְּבָרָיו אָדָם נִתְפַּס
Definition (Hebrew)
הַדְּבָרִים הָאַחֲרוֹנִים שֶׁאָדָם אָמַר הֵם אֵלּוּ הַחֲשׁוּבִים אוֹ הַמְּחַיְּבִים אוֹתוֹ.
("בִּגְמַר דְּבָרָיו אָדָם נִתְפָּס. דְּאִי רַבִּי מֵאִיר הָא אָמַר תְּפֹס לָשׁוֹן רִאשׁוֹן"-פְּסָחִים נט ע"ב)