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.'"
English reference: Vol. 1, Book 1, Hadith 592
Arabic reference: Book 1, Hadith 635
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.