Abu Hurairah reported Messenger of Allah (ﷺ) as saying:
When one of you is invited (to a meal), and he is fasting, he should say that he is fasting.