Umar mentioned to the Messenger of Allah ﷺ that he sometimes became sexually impure during the night. The Messenger of Allah ﷺ instructed him to wash his private part, perform ablution, and then sleep.
حدثنا عفان حدثنا عبد العزيز بن مسلم حدثنا عبد الله بن دينار
أن عمر ذكر لرسول الله ﷺ أن الجنابة تصيبه من الليل فأمره رسول الله ﷺ أن يغسل ذكره ويتوضأ ثم ينام