حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ، عَنْ مَالِكٍ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ، أَنَّهُ قَالَ ذَكَرَ عُمَرُ بْنُ الْخَطَّابِ لِرَسُولِ اللَّهِ صلى الله عليه وسلم أَنَّهُ تُصِيبُهُ الْجَنَابَةُ مِنَ اللَّيْلِ فَقَالَ لَهُ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏تَوَضَّأْ وَاغْسِلْ ذَكَرَكَ ثُمَّ نَمْ ‏"
Translation
‘Abd Allah b. ‘Umar reported

Abdullah ibn Maslamah narrated to us, from Malik, from Abdullah ibn Dinar, from Abdullah ibn Umar, that Umar ibn al-Khattab mentioned to the Messenger of Allah, may Allah bless him and grant him peace, that he would experience major ritual impurity (janabah) at night. The Messenger of Allah, may Allah bless him and grant him peace, said to him: "Perform ablution, wash your penis, and then sleep."