When food is served at the time of the Maghrib prayer
then one should first eat calmly, and then perform the prayer.
➊ It is narrated from Anas (may Allah be pleased with him) that the Prophet ﷺ said:
إذا قدم العشاء فـابـدوا به قبل أن تصلوا المغرب
“When the evening meal is served, begin with it (the food) before you perform the Maghrib prayer.”
➋ A similar narration is also reported from Ibn Umar (may Allah be pleased with them both), and in Sahih al-Bukhari and Sunan Abi Dawud and others these additional words are also found: “Food would be set out for Ibn Umar (may Allah be pleased with them both) while the prayer was being established, and he would not pray until he had finished eating, even though he could hear the recitation of the imam.”