Umar bin Khattab mentioned to the Messenger of Allah ﷺ that he became sexually impure during the night, and the Messenger of Allah told him, "Perform wudu, wash your private part, and then sleep."
حدثني يحيى عن مالك عن عبد الله بن دينار
ذكر عمر بن الخطاب لرسول الله ﷺ أنه يصيبه جنابة من الليل فقال له رسول الله توضأ واغسل ذكرك ثم نم