(Imām Bukhārī narrates): Yahya bin Bukair narrated to us, he says: Laith narrated to us, from Ubaidullah bin Abi Ja'far, from Muhammad bin Abdur Rahman, from Urwah, from Hazrat Aisha (may Allāh be pleased with her), she says that
when the Prophet ﷺ intended to sleep and was in a state of janabah, he would wash his private part and perform the wudu of prayer.
Reference: Sahih Al Bukhari 288