Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) narrates from the Prophet (peace and blessings be upon him): "The eyes are the drawstring of the anus, so whoever sleeps should perform ablution."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 578