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