Sunan Ibn Majah, Book 7, Hadith 113 (Ibn Majah 1750)

It was narrated from Abu Hurairah that the Prophet (ﷺ) said:

“If anyone of you is invited to eat when he is fasting, let him say: ‘I am fasting.’”