I asked Ayesha whether the Prophet ﷺ used to sleep while in a state of major ritual impurity. She replied, "Yes, and he would perform ablution as he did for prayer."
حدثنا عبد الوهاب قال أخبرنا هشام عن يحيى
سألت عائشة هل كان النبي ﷺ يرقد وهو جنب قالت نعم ويتوضأ وضوءه للصلاة