The Messenger of Allah ﷺ used to sleep while in a state of major ritual impurity after performing the same ablution he would make for prayer.
حدثنا حسن حدثنا ابن لهيعة قال حدثنا أبو الأسود عن عروة بن الزبير
أن رسول الله ﷺ كان ينام وهو جنب إذا توضأ وضوءه للصلاة