“Whoever is invited to eat when he is fasting, let him accept the invitation; and if he wants to let him eat, and if he wants let him not eat.”
Sunan Ibn Majah Book 7, Hadith 114