Hadithcore
Mishkat al-Masabih, 3217

Jabir reported God’s Messenger as saying, “When one of you is invited to a meal he must accept. If he wishes he may eat, but if he wishes he may leave the food alone.” Muslim transmitted it.

وَعَنْ جَابِرٍ: قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا دُعِيَ أَحَدُكُمْ إِلَى طَعَام فليجب وَإِن شَاءَ طَعِمَ وَإِنْ شَاءَ تَرَكَ» . رَوَاهُ مُسْلِمٌ

References1 variant
In-Book Reference
Book 13, Hadith 135