Hadith 1753
'Aishah (May Allah be pleased with her) said:
عن عائشة رَضِيَ اللهُ عنها، قالت: سَمِعْتُ رسولَ الله - صلى الله عليه وسلم - يقولُ: "لا صَلاَةَ بِحَضْرَةِ طَعَامٍ، وَلاَ وَهُوَ يُدَافِعُهُ الأَخْبَثَانِ" . ((رواه مسلم))
I heard the Messenger of Allah (ﷺ) 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].
In plain words
The Prophet taught that one should not pray when food has just been served, nor while badly needing to relieve oneself. Settling such distractions first lets the heart attend to the prayer.
Reference : Riyad as-Salihin 1753 In-book reference : Book 17, Hadith 243