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