'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)
يَا رَسُولَ اللهِ أَيَرْقُدُ أَحَدُنَا وَهُوَ جُنُبٌ؟ قَالَ نَعَمْ إِذَا تَوَضَّأَ