Sunan Ibn Majah, Book 1, Hadith 635 (In-Book) ⓘ
It was narrated that Jabir bin 'Abdullah said: "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.'"
حَدَّثَنَا مُحَمَّدُ بْنُ عُمَرَ بْنِ هَيَّاجٍ، حَدَّثَنَا إِسْمَاعِيلُ بْنُ صُبَيْحٍ، حَدَّثَنَا أَبُو أُوَيْسٍ، عَنْ شُرَحْبِيلَ بْنِ سَعْدٍ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ، قَالَ سُئِلَ النَّبِيُّ ـ صلى الله عليه وسلم ـ عَنِ الْجُنُبِ هَلْ يَنَامُ أَوْ يَأْكُلُ أَوْ يَشْرَبُ قَالَ " نَعَمْ إِذَا تَوَضَّأَ وُضُوءَهُ لِلصَّلاَةِ " .
also referenced under: Hadith 592 (Reference) & Volume 1, Book 1, Hadith 592 (DarusSalam)