Abu Dawud Book 1, Hadith Number 274.

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

Narated By Umm Salamah, Ummul Mu’minin : In the time of the Apostle of Allah (PBUH) there was a woman who had an issue of blood. So Umm Salamah asked the Apostle of Allah (PBUH) to give a decision about her. He said: She should consider the number of nights and days during which she used to menstruate each month before she was afflicted with this trouble and abandon prayer during that period each month. When those days and nights are over, she should take a bath, tie a cloth over her private parts and pray.