Ayesha reported,

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."

Azami 2387

Sahih

عن عائشة قالت

سمعت رسول الله ﷺ يقول: لا يصلي بحضرة الطعام، ولا هو يدافعه الأخبثان.

الأعظمي 2387صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Congregational prayer
Section
One should not pray while needing to relieve oneself
Numbering
Jami al-Kamil 2387 (2nd edition)
Azami 2387