Abu Dawud Book 1, Hadith Number 351.
Chapter : A person who is sexually defiled is permitted to eat anything before washing.
Narated By Abu Hurairah : The Apostle of Allah (PBUH) said: Whosoever takes a bath due to sexual defilement on Friday and goes out (for Friday prayer), is treated like one who offered camel as sacrifice; he who goes out in the second instance as one who offers a cow; he who goes out in the third instance is treated as one who offers a horned cow; he who goes out in the fourth instance is treated as one who offers a hen; he who goes out in the fifth instance is treated as one who offers an egg. When the Imm comes out (for sermon), the angels too attend to listen to the sermon.