`Aishah (May Allah be pleased with her) said: I heard the Messenger of Allah (PBUH) saying, "No Salat (prayer) should be performed when the food has been served, nor should it be performed when a person is in need of relieving himself."[Muslim].
We learn from this Hadith that one should not offer Salat when he is hungry and the food has been served or has to answer the call of nature. The reason behind is that if one offers Salat in that condition, he will not be able to do it with full concentration. Similarly, if one has to answer the call of nature, he should first do so and then offer Salat.