Sunan an-Nasa'i — The Book of Purification — Hadith No: 260
أَخْبَرَنَا قُتَيْبَةُ، عَنْ مَالِكٍ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ، قَالَ ذَكَرَ عُمَرُ لِرَسُولِ اللَّهِ صلى الله عليه وسلم أَنَّهُ تُصِيبُهُ الْجَنَابَةُ مِنَ اللَّيْلِ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " تَوَضَّأْ وَاغْسِلْ ذَكَرَكَ ثُمَّ نَمْ " .
Translation
It was narrated that Ibn 'Umar said:"Umar mentioned to the Messenger of Allah (ﷺ) that he became Junub at night, and the Messenger of Allah (ﷺ) said: 'Perform Wudu' and wash you penis, then sleep