Sunan Abi Dawud, Book 1, Hadith 203 (Abu Dawud 203)

Narrated Ali ibn AbuTalib:

The Messenger of Allah (ﷺ) said: The eyes are the leather strap of the anus, so one who sleeps should perform ablution.