Commentary for Berakhot 49:2
וא"ר הונא שכח ונכנס בתפילין לבית הכסא מניח ידו עליהן עד שיגמור עד שיגמור ס"ד אלא כדאמר ר"נ בר יצחק עד שיגמור עמוד ראשון ולפסוק לאלתר וליקום משום דרשב"ג דתניא רשב"ג אומר עמוד החוזר מביא את האדם לידי הדרוקן סילון החוזר מביא את האדם לידי ירקון:
Rab Huna also said : If a man forgot and entered a privy wearing his Tefillin, he should place his hand over them until he finishes. Until he finishes, dost imagine? Nay, it is as Rab Nahman b. Isaac has said : Until he finishes the first discharge. Let him, then, stop at once and stand up! [No,] because of [the saying of] Rabban Simeon b. Gamaliel ; for there is a teaching : Rabban Simeon b. Gamaliel says : If the fecal discharge is kept back it causes dropsy, and if the fluid in the urinary duct is kept back it causes jaundice.