Umar bin Khattab reported,

He asked the Prophet ﷺ, "Can one of us sleep while in a state of major ritual impurity?"He replied, "He should perform ablution and then sleep if he wishes."On one occasion Sufyan said, "Let him perform ablution and let him sleep."

Ahmad 165

Sahih

حدثنا سفيان عن عبد الله بن دينار عن ابن عمر

عن عمر

أنه سأل النبي ﷺ أينام أحدنا وهو جنب قال يتوضأ وينام إن شاء وقال سفيان مرة ليتوضأ ولينم

أحمد 165صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Umar bin Khattab
Numbering
Darussalam 165
Ahmad 165