Sunan Ibn Majah, Book 7, Hadith 114 (Ibn Majah 1751)

It was narrated from Jabir that the Messenger of Allah (ﷺ) said:

“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.”