كتاب الطهارة
3  
Purification
(7a)
Chapter: Associating with one who is defiled, and what is permitted - Section 1
(6)
باب مخالطة الجنب - الفصل الأول
Mishkat al-Masabih 452
Ibn ‘Umar told how ‘Umar b. al-Khattab mentioned to God’s messenger that he was affected by seminal defilement during the night, and was told to perform ablution, wash his penis, and go back to sleep. (Bukhari and Muslim.)
وَعَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ أَنه قَالَ: ذَكَرَ عُمَرُ بْنُ الْخَطَّابِ لِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنَّهُ تُصِيبُهُ الْجَنَابَةُ مِنَ اللَّيْلِ فَقَالَ لَهُ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «تَوَضَّأْ وَاغْسِلْ ذَكَرَكَ ثُمَّ نم»
  مُتَّفَقٌ عَلَيْهِ   (الألباني) حكم   :
Reference : Mishkat al-Masabih 452
In-book reference : Book 3, Hadith 156