ʿUmar bin Al-Khattab told Messenger of Allah ﷺ, "I became Junub at night." Messenger of Allah ﷺ replied, "Perform ablution after washing your private parts and then sleep."
أَنَّهُ قَالَ ذَكَرَ عُمَرُ بْنُ الْخَطَّابِ لِرَسُولِ اللَّهِ ﷺ أَنَّهُ تُصِيبُهُ الْجَنَابَةُ مِنَ اللَّيْلِ فَقَالَ لَهُ رَسُولُ اللَّهِ ﷺ تَوَضَّأْ وَاغْسِلْ ذَكَرَكَ ثُمَّ نَمْ