The Messenger of Allah, peace and blessings of Allaah be upon him, said:
“Do not pray when there is food prepared.” (Reported by Muslim, no. 560).
If food has been prepared and served, or if it is offered, a person should eat first, because they will not be able to concentrate properly and have khushu if they leave it and get up to pray when they are wanting to eat.
The worshipper should not even hasten to finish eating, because the Prophet, peace and blessings of Allaah be upon him, said:
“If the dinner is served and the time for prayer comes, eat dinner before praying Salaat al-Maghrib, and do not rush to finish your meal.”
And according to another report:
“If dinner has been put out and the iqaamah has been given for prayer, eat dinner first and do not rush to finish it.” (Al-Bukhaari, Kitaab al-Aadhan, Baab idhaa hadara al-ta’aamu wa uqeemat al-salaah; Muslim, no. 557-559).