Sayyiduna Malik bin Abdullah al-Ghafiqi (may Allah be pleased with him) related that one day the Messenger of Allah (peace and blessings be upon him) ate some food, then said: "Screen me until I take a ritual bath (ghusl)." I said: O Messenger of Allah! Were you in a state of major ritual impurity (janabah)? He (peace and blessings be upon him) said: "Yes." I told this to Umar bin al-Khattab (may Allah be pleased with him), and he came to the Messenger of Allah (peace and blessings be upon him) and said: This man claims that you ate while in a state of janabah? He (peace and blessings be upon him) said: "Yes. When I have performed ablution (wudu), I eat and drink, but I do not pray or recite until I have taken a ritual bath."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 16705