Whenever the Prophet (ﷺ) intended to sleep while he was Junub, he used to wash his private…

Sahih al-Bukhari Book 5 Hadith 40

Sahih al-Bukhari #288

Bathing (Ghusl) 5:40

Narrated `Aisha:

Whenever the Prophet (ﷺ) intended to sleep while he was Junub, he used to wash his private parts and perform ablution like that for the prayer.

Chapter: A Junub person should perform ablution before sleeping

Grade: Sahih