It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Ablution is due to what comes out, not to what goes in."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 568