Umar asked the Messenger of Allah ﷺ, "I become sexually impure during the night. What should I do?"He instructed him to wash his private part, perform ablution, and then sleep.
حدثنا الفضل بن دكين حدثنا سفيان عن عبد الله بن دينار سمعت
سأل عمر رسول الله ﷺ فقال تصيبني الجنابة من الليل فأمره أن يغسل ذكره ويتوضأ ويرقد