The Prophet ﷺ said, "When one of you is invited, let him accept the invitation. If he is fasting, let him pray for the host, and if he is not fasting, let him eat."
حدثنا يزيد أخبرنا هشام عن محمد
عن النبي ﷺ قال إذا دعي أحدكم فليجب فإن كان صائما فليصل وإن كان مفطرا فليطعم