סימן קעט סעיף יד
מִי שֶׁהוּא יוֹדֵעַ שֶׁחַיָּב לַחֲבֵרוֹ, וַחֲבֵרוֹ אוֹמֵר לוֹ, וַדַּאי לִי שֶׁאֵינְךָ חַיָב לִי, פָּטוּר מִלְשַׁלֵּם לוֹ, שֶהֲרֵי מָחַל לוֹ.
If you know you owe your friend money, and your friend says to you: "I am certain you owe me nothing," you need not pay him, because he has apparently forgiven the debt.21And he does not have the right to say later that he had made a mistake about it. (Smah 75:28, Shach 75:33. The Bach disagrees.)
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)