The Messenger of Allah said: "The eye is the leather strap (that ties up) the anus, so whoever falls asleep, let him perform ablution."
Sunan Ibn Majah Book 1, Hadith 211