Sahih Bukhari | Volume 1 | Hadith Number 286

Narrated by '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.