Ayesha reported,

Whenever the Messenger of Allah ﷺ wished to sleep while in a state of major ritual impurity, he would perform ablution as he did for prayer.

Ibn Majah 584

Sahih

حدثنا محمد بن رمح المصري أنبأنا الليث بن سعد عن الزهري عن أبي سلمة

عن عائشة قالت

كان رسول الله ﷺ إذا أراد أن ينام وهو جنب توضأ وضوءه للصلاة

ابن ماجه 584صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Purification and its sunnahs
Chapter
Whoever said a person in a state of major ritual impurity should not sleep until he performs wudu for prayer
Numbering
Darussalam 584
Ibn Majah 584