סימן מה סעיף ג
יַיִן שֶׁשָּׁתוּ מִמֶּנּוּ, כָּל הַנִּשְׁאָר בַּכְּלִי נַעֲשָׂה פָּגוּם, וּפָסוּל לְבִרְכַּת הַמָּזוֹן עַד שֶׁיְתַקְּנוֹ, דְּהַיְנוּ שֶׁנּוֹתֵן לְתוֹכוֹ קְצָת יַיִן אוֹ קְצָת מַיִם שֶׁאֵינָם פְּגוּמִים, וְכֵיוָן שֶׁצָּרִיךְ לְמַלֹאת אֶת הַכּוֹס לְשֵׁם בְּרָכָה, לָכֵן אִם הַכּוֹס פָּגוּם וְהוּא מְתַקְנוּ, צָרִיךְ לְשָׁפְכוֹ לְתוֹךְ קַנְקַן, וּמִתּוֹךְ הַקַּנְקַן לְתוֹךְ הַכּוֹס לְשֵׁם בְּרָכָה.
If you drink some of the wine out of a cup whatever remains in it becomes blemished and is disqualified for use for Birkas Hamazon unless it is rectified by adding a little wine or water that is not blemished. Since the cup must be filled specifically for the sake of reciting a berachah, therefore, if the cup was blemished and you rectified it, you must pour it back into the bottle and from the bottle back into the cup for the sake of the berachah.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)