Anas ibn Malik reported: The Messenger of Allah, peace and blessings be upon him, said, “If dinner is presented close to the time of prayer, begin eating before you perform sunset prayer and do not need to rush away from your dinner.”
Source: Ṣaḥīḥ al-Bukhārī 640, Ṣaḥīḥ Muslim 558
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
Ibn Hajar said, “The majority interpreted this command as a recommendation, then they disagreed. Among them are those who restricted it to those who need to eat, which is a famous opinion in the Al-Shafi’i school. Al-Ghazali added if it is feared that the food will spoil. Among them are those who did not restrict it at all, which is the opinion of Al-Thawri, Ahmad, and Ishaq.”
Source: Fatḥ al-Bārī 640
عَنْ أَنَسِ بْنِ مَالِكٍ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَإِذَا قُرِّبَ الْعَشَاءُ وَحَضَرَتِ الصَّلَاةُ فَابْدَءُوا بِهِ قَبْلَ أَنْ تُصَلُّوا صَلَاةَ الْمَغْرِبِ وَلَا تَعْجَلُوا عَنْ عَشَائِكُمْ
640 صحيح البخاري أبواب صلاة الجماعة والإمامة باب إذا حضر الطعام وأقيمت الصلاة
558 صحيح مسلم كتاب المساجد ومواضع الصلاة باب كراهة الصلاة بحضرة الطعام الذي يريد أكله في الحال وكراهة الصلاة مع مدافعة الأخبثين
قال ابن حجر حَمَلَ الْجُمْهُورُ هَذَا الْأَمْرَ عَلَى النَّدْبِ ثُمَّ اخْتَلَفُوا فَمِنْهُمْ مَنْ قَيَّدَهُ بِمَنْ كَانَ مُحْتَاجًا إِلَى الْأَكْلِ وَهُوَ الْمَشْهُورُ عِنْدَ الشَّافِعِيَّةِ وَزَادَ الْغَزَالِيُّ مَا إِذَا خَشِيَ فَسَادَ الْمَأْكُولِ وَمِنْهُمْ مَنْ لَمْ يُقَيِّدْهُ وَهُوَ قَوْلُ الثَّوْرِيِّ وَأَحْمَدَ وَإِسْحَاقَ
640 فتح الباري شرح صحيح البخاري