(Imām Bukhārī narrates): Abu Nu'aim narrated to us, he said: Hisham and Shaiban narrated to us, from Yahya, from Abi Salamah, he said:
I asked Hazrat Aisha (may Allāh be pleased with her) whether the Prophet ﷺ used to sleep in a state of janabah. Hazrat Aisha (may Allāh be pleased with her) said: Yes! And he would perform wudu.
حَدَّثَنَا أَبُو نُعَيْمٍ، قَالَ حَدَّثَنَا هِشَامٌ، وَشَيْبَانُ، عَنْ يَحْيَى، عَنْ أَبِي سَلَمَةَ
قَالَ سَأَلْتُ عَائِشَةَ أَكَانَ النَّبِيُّ صلى الله عليه وسلم يَرْقُدُ وَهْوَ جُنُبٌ قَالَتْ نَعَمْ وَيَتَوَضَّأُ.
Reference: Sahih Al Bukhari 286