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