No prayer should be offered in the presence of food or when he is resisting the need to relieve himself of the two filths
عن عَائِشَةَ رضيَ الله عنها قالت: إِنِّي سمعْتُ رسولَ الله صلى الله عليه وسلم يقول: «لَا صَلَاةَ بِحَضْرَةِ الطَّعَامِ، وَلَا هُوَ يُدَافِعُهُ الْأَخْبَثَانِ».
‘Ā’ishah (may Allah be pleased with her) reported: I heard the Messenger of Allah (may Allah's peace and blessings be upon him) say: "No prayer should be offered in the presence of food or when he is resisting the need to relieve himself of the two filths."
Narrated by MuslimGradeAuthentic
Explanation
The Messenger of Allah (may Allah's peace and blessings be upon him) forbade praying in the presence of food, which the praying person craves and wants very much.
Also, he forbade praying while resisting the need to relieve oneself of the two filths - urine and stool - for this causes distraction.
Benefits
Before commencing the prayer, a worshiper should eliminate anything that may distract him during their prayer.
Reference
صحيح مسلم (1/ 393) (560).
شرح النووي على مسلم (5/ 46).
تيسير العلام شرح عمدة الأحكام، للبسام (ص96).
تنبيه الأفهام شرح عمدة الأحكام، لابن عثيمين (1/ 123).
Every ḥadīth, grade, explanation and benefit here is shown exactly as HadeethEnc.com publishes it, under its terms for republication. The grade names no grader. The translations and explanations are its authors’ own, and some state rulings; Sabīl’s reviewers have not examined them. The Arabic ḥadīth is the text. Source: HadeethEnc.com