Ayesha reported,

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

Nasai 259

Sahih

أخبرنا قتيبة بن سعيد قال حدثنا الليث عن ابن شهاب عن أبي سلمة بن عبد الرحمن

عن عائشة رضي الله عنها قالت

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

النسائي 259صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Purification
Chapter
Wudu of the one in a state of janabah when he wants to sleep
Numbering
Darussalam 259
Nasai 259