اسْتَفْتَى عُمَرُ النَّبِيَّ صلى الله عليه وسلم أَيَنَامُ أَحَدُنَا وَهْوَ جُنُبٌ قَالَ " نَعَمْ، إِذَا تَوَضَّأَ ".
Ibn Umar reported: Umar sought a ruling from the Prophet ﷺ: “May one of us sleep while he is in a state of janabah?” He said, “Yes, if he has performed ablution (wudu).”
also in Sahih al-Bukhari 287, Sahih al-Bukhari 290