(27) باب الْجُنُبِ يَتَوَضَّأُ ثُمَّ يَنَامُ
Narrated `Abdullah bin `Umar:
`Umar bin Al-Khattab told Allah's Messenger (ﷺ), "I became Junub at night." Allah's Messenger (ﷺ) replied, "Perform ablution after washing your private parts and then sleep."
Reference: Sahih al-Bukhari 290
In-book reference: Book 5, Hadith 42
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 5, Hadith 288