Bulugh al-Maram 80
وَعَنْ مُعَاوِيَةَ - رضي الله عنه - قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «الْعَيْنُ وِكَاءُ السَّهِ, فَإِذَا نَامَتْ الْعَيْنَانِ اسْتَطْلَقَ الْوِكَاءُ». رَوَاهُ أَحْمَدُ, وَالطَّبَرَانِيُّ وَزَادَ: «وَمَنْ نَامَ فَلْيَتَوَضَّأْ». وَهَذِهِ الزِّيَادَةُ فِي هَذَا الْحَدِيثِ عِنْدَ أَبِي دَاوُدَ مِنْ حَدِيثِ عَلِيٍّ دُونَ قَوْلِهِ: «اسْتَطْلَقَ الْوِكَاءُ». وَفِي كِلَا الْإِسْنَادَيْنِ ضَعْفٌ.
From Muʿawiyah, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "The eye is the drawstring of the anus; when the eyes sleep, the drawstring comes loose." Narrated by Ahmad, and by at-Tabarani, who added: "So whoever sleeps, let him perform wudu." This addition is in this hadith with Abu Dawud from the hadith of ʿAli, without his words: "the drawstring comes loose." And there is weakness in both chains.