I heard the Messenger of Allah ﷺ say, "No prayer is to be performed when food is present, nor when one is restraining the two impurities."
سمعت رسول الله ﷺ يقول: لا يصلي بحضرة الطعام، ولا هو يدافعه الأخبثان.
Abu Dawud (89) narrated it from Ahmad bin Hanbal, Musaddad, and Muhammad bin Isa, who said, Yahya bin Saeed narrated to us, from Abu Hazra, Abdullah bin Muhammad narrated to us, Ibn Isa said in his version, "Ibn Abu Bakr," then they agreed on "the brother of Qasim bin Muhammad." He said, We were with Ayesha when her food was brought, and Qasim stood up to pray. Ayesha said, "I heard the Messenger of Allah ﷺ say," and then she related the hadith.Its origin is in Sahih Muslim (560), narrated from Yahya bin Ayub, Qutayba bin Saeed, and Ibn Hajar, who said, Ismail, who is Ibn Jafar, narrated to us, Abu Hazra the storyteller informed me, from Abdullah bin Abu Atiq, from Ayesha, from the Prophet ﷺ, and he referred its wording to the preceding hadith, which is, "There is no prayer in the presence of food, nor while one is being pressed by the two urges."He also narrated it through another route from Ibn Abu Atiq, and it contains the story of Qasim, as mentioned before. The two urges are urination and defecation. For the rest of the hadiths, see the Book of Purification, the chapter on the man holding back the urge who should begin by relieving himself.