Abdullah bin Umar reported,

Umar bin Khattab mentioned to the Messenger of Allah ﷺ that he sometimes became in a state of major ritual impurity during the night. The Messenger of Allah ﷺ said to him, "Perform ablution, wash your private part, then sleep."

Bukhari 290

Sahih

حدثنا عبد الله بن يوسف قال أخبرنا مالك عن عبد الله بن دينار

عن عبد الله بن عمر

أنه قال ذكر عمر بن الخطاب لرسول الله ﷺ أنه تصيبه الجنابة من الليل فقال له رسول الله ﷺ توضأ واغسل ذكرك ثم نم

البخاري 290صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Ghusl
Chapter
One in a state of major impurity performs wudu then sleeps
Numbering
Darussalam 290
Bukhari 290