Abu Dawud Book 1, Hadith Number 347.

Chapter : A person who is sexually defiled is permitted to eat anything before washing.

Narated By ‘Abd Allah b. ‘Amr b. al-‘As : The Prophet (PBUH) said: Whosoever washes himself on Friday and applies the perfume of his wife if she has one, and wears good clothes and does not step over the necks of people (in the mosque to sit in the front row) and does not indulge in idle talk during the sermon, that will atone (for his sins) between the two Fridays. But he who indulges in idle talk and steps over the necks of the people (in the mosque), that Friday will be for him like the noon prayer.