Narrated Ammar ibn Yasir:
The Prophet (ﷺ) granted permission to a person who was sexually defiled to eat or drink or sleep after performing ablution.
Abu Dawud said: In the chain of this tradition there is a narrator between Yahya b. Ya'mur and 'Ammar b. Yasir. 'Ali b. Abi Talib, Ibn 'Umar and 'Abd Allah b. 'Amr said: When a person is sexually defiled wants to eat, he should perform ablution.