If he is not fasting, he should eat, and if he is fasting, he should leave it.

Sunan Abu Dawud Book 28 Hadith 2

Sunan Abu Dawud #3737

Foods (Kitab Al-At'imah) 28:2

The tradition mentioned above has also been transmitted by Ibn ‘Umar to the same effect through a different chain of narrators. This version has the additional words:

If he is not fasting, he should eat, and if he is fasting, he should leave it.

Chapter: What has been reported about accepting invitations

Grade: Sahih (Al-Albani)