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.
Narrated `Abdullah
`Umar asked the Prophet (ﷺ) "Can anyone of us sleep while he is Junub?" He replied, "Yes, if he performs ablution."
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."