[Machine] Umar, may Allah be pleased with him, asked the Messenger of Allah, peace be upon him, and said, "Can I experience sexual impurity (Janaba) during the night?" So he instructed him to "wash his private parts, perform ablution, and then go to sleep."
سَأَلَ عُمَرُ رِضْوَانُ اللَّهِ عَلَيْهِ رَسُولَ اللَّهِ ﷺ فَقَالَ تُصِيبُنِي الْجَنَابَةُ مِنَ اللَّيْلِ؟ فَأَمَرَهُ أَنْ «يَغْسِلَ ذَكَرَهُ وَيَتَوَضَّأَ ثُمَّ يَرْقُدَ»