'Umar bin Khattab said to the Messenger of Allah: "can anyone of us sleep if he is sexually impure?" He said: "Yes, if he performs ablution." (Using translation from Ibn Mājah 585)
أَنَّ عُمَرَ سَأَلَ رَسُولَ اللهِ ﷺ أَيَنَامُ أَحَدُنَا وَهُوَ جُنُبٌ؟ قَالَ نَعَمْ إِذَا تَوَضَّأَ