The Prophet (peace and blessings be upon him) said: "The eyes are what keep the private part closed, so whoever sleeps should perform ablution (wudu)."