[Machine] He asked the Messenger of Allah, may ﷺ , "Can one of us sleep while in a state of janaba (impurity)?". In the hadith of Nafi', he said, "Let him perform ablution and then sleep." And in the hadith of Abu Qilabah, he said, "Let him perform ablution for prayer and then sleep."
أَنَّهُ سَأَلَ رَسُولَ اللهِ ﷺ «أَيَنَامُ أَحَدُنَا وَهُوَ جُنُبٌ؟» فِي حَدِيثِ نَافِعٍ قَالَ «فَلْيَتَوَضَّأْ ثُمَّ لِيَنَمْ» وَفِي حَدِيثِ أَبِي قِلَابَةَ «فَلْيَتَوَضَّأْ وُضُوءَهُ لِلصَّلَاةِ ثُمَّ لِيَنَمْ»