Abu Saeed Khudri reported,

He would become in a state of major ritual impurity at night and want to sleep, so the Messenger of Allah ﷺ instructed him to perform ablution and then sleep.

Ibn Majah 586

Sahih

حدثنا أبو مروان العثماني محمد بن عثمان حدثنا عبد العزيز بن محمد عن يزيد بن عبد الله بن الهاد عن عبد الله بن خباب

عن أبي سعيد الخدري

أنه كان تصيبه الجنابة بالليل فيريد أن ينام فأمره رسول الله ﷺ أن يتوضأ ثم ينام

ابن ماجه 586صحيح
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 586
Ibn Majah 586