Abu Hurairah reported,

The Messenger of Allah ﷺ 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."

Azami 11179

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: إذا دعي أحدكم فليجب، فإن كان صائما فليصل، وإن كان مفطرا فليطعم.

الأعظمي 11179صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications for eating, drinking, and clothing
Section
Supplication of the fasting person for the host of the meal
Numbering
Jami al-Kamil 11179 (2nd edition)
Azami 11179