Dua When a Fasting Person is Offered Food and does not Break the Fast is chapter 74 of Hisn al-Muslim (Fortress of the Muslim), the collection of supplications from the Quran and Sunnah compiled by Sa'id ibn 'Ali ibn Wahf al-Qahtani. It has one reading, shown below with the Arabic, transliteration, English meaning and source reference exactly as published in the deen2u English edition.
The supplication (Hisn al-Muslim #185)
إِذَا دُعِيَ أَحَدُكُمْ فَلْيُجِبْ، فَإِنْ كَانَ صَائِمًا فَلْيُصَلِّ، وَإِنْ كَانَ مُفْطِرًا فَلْيَطْعَمْ
Idha du'iya ahadukum falyujib, fa in kana sa'iman falyusall, wa in kana muftiran falyat'am
When one of you is invited, let him accept. If he is fasting, let him pray (for his host); and if he is not fasting, let him eat. — deen2u
Reference: Ṣaḥīḥ Muslim, The Book of Marriage — site no. 3398 (Ṣaḥīḥ) Muslim 2/1054, no. 1431 · Source: Fortress of the Muslim — deen2u English edition, deen2u.com/hisn-al-muslim
Source
Fortress of the Muslim, deen2u English edition (deen2u.com/hisn-al-muslim). Free to read, print and share unchanged. English translation, transliteration and arrangement © deen2u. Quran Arabic: Tanzil Project.