It was narrated that 'Aishah said: If the Messenger of Allah wanted to eat when he was sexually impure, he would perform ablution.
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.'