Sahih al-Bukhari 289
Book 5: Bathing (Ghusl) · Narrated by `Abdullah
Arabic
حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، قَالَ حَدَّثَنَا جُوَيْرِيَةُ، عَنْ نَافِعٍ، عَنْ عَبْدِ اللَّهِ، قَالَ اسْتَفْتَى عُمَرُ النَّبِيَّ صلى الله عليه وسلم أَيَنَامُ أَحَدُنَا وَهْوَ جُنُبٌ قَالَ " نَعَمْ، إِذَا تَوَضَّأَ ".
English translation
Narrated `Abdullah:`Umar asked the Prophet (ﷺ) "Can anyone of us sleep while he is Junub?" He replied, "Yes, if he performs ablution
Reference: Sahih al-Bukhari 289, Book of Bathing (Ghusl). English translation by Dr. Muhammad Muhsin Khan.