"The Prophet was asked about whether a person who is sexually impure can sleep, or eat, or drink. He said: 'yes, if he does ablution as for the prayer.'"
سُئِلَ النَّبِيُّ ﷺ عَنِ الْجُنُبِ هَلْ يَنَامُ أَوْ يَأْكُلُ أَوْ يَشْرَبُ قَالَ نَعَمْ إِذَا تَوَضَّأَ وُضُوءَهُ لِلصَّلاَةِ