Sunan Ibn Majah, Book 1, Hadith 211 (Ibn Majah 477)

It was narrated from 'Ali bin Abu Talib that:

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