עבודה זרה ה:ח · Avodah Zarah 5:8

יֵין נֶסֶךְ אָסוּר, וְאוֹסֵר בְּכָל שֶׁהוּא. יַיִן בְּיַיִן וּמַיִם בְּמַיִם, בְּכָל שֶׁהוּא. יַיִן בְּמַיִם וּמַיִם בְּיַיִן, בְּנוֹתֵן טָעַם. זֶה הַכְּלָל, מִין בְּמִינוֹ, בְּמַשֶּׁהוּ. וְשֶׁלֹּא בְמִינוֹ, בְּנוֹתֵן טָעַם:
Wine used for a libation is forbidden, and any amount of it renders other wine forbidden if they are mixed together. Wine used for a libation that became mixed with wine, or water that was used for an idolatrous libation that became mixed with ordinary water, renders the mixture forbidden with any amount of the forbidden wine or water; but wine used for a libation that became mixed with water, or water used for a libation that became mixed with wine renders the mixture forbidden only if the forbidden liquid is sufficient to impart flavor to the mixture, i.e., for the wine to flavor the water or for the water to dilute the wine to an extent that can be tasted. This is the principle: A substance in contact with the same type of substance renders the mixture forbidden with any amount of the forbidden substance, but a substance in contact with a different type of substance renders the mixture forbidden only in a case where it imparts flavor to it.

Word-by-word Breakdown (מילים ושרשים)

יֵין → Wine [י - י - ן]נֶסֶךְ → of libation [נ - ס - כ]אָסוּר → is prohibited [א - ס - ר]וְאוֹסֵר → and renders forbidden [א - ס - ר]בְּכָל → in any [כ - ל - ל]שֶׁהוּא → amount [ה - י - ה]יַיִן → wine [י - י - ן]בְּיַיִן → with wine, [י - י - ן]וּמַיִם → and water [מ - י - ם]בְּמַיִם → with water, [מ - י - ם]בְּכָל → in any [כ - ל - ל]שֶׁהוּא → amount, [ה - י - ה]יַיִן → wine [י - י - ן]בְּמַיִם → with water [מ - י - ם]וּמַיִם → and water [מ - י - ם]בְּיַיִן → with wine, [י - י - ן]בְּנוֹתֵן → by imparting [נ - ת - ן]טָעַם → flavor, [ט - ע - ם]זֶה → this הַכְּלָל → is the rule: [כ - ל - ל]מִין → a substance [מ - י - ן]בְּמִינוֹ → with its own kind, [מ - י - ן]בְּמַשֶּׁהוּ → in any amount; וְשֶׁלֹּא → and that which is not בְמִינוֹ → of its kind, [מ - י - ן]בְּנוֹתֵן → by imparting [נ - ת - ן]טָעַם → flavor. [ט - ע - ם]