Abdullah bin Umar reported,

Umar bin Khattab mentioned to the Messenger of Allah ﷺ that he sometimes became sexually impure during the night. The Messenger of Allah ﷺ told him, "Perform ablution, wash your private part, then go to sleep."

Muslim 704

Sahih

و حدثني يحيى بن يحيى قال قرأت على مالك عن عبد الله بن دينار

عن ابن عمر قال

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

مسلم 704صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Menstruation
Chapter
Permissibility of a junub sleeping, recommendation of wudu for him, and washing the private parts if he wants to eat, drink, sleep, or have intercourse
Numbering
Darussalam 704
Muslim 704