The Messenger of Allah ﷺ said, "When one of you is invited, he should accept. Then if he wishes, he may eat, and if he wishes, he may refrain."
حدثنا عبد الرزاق أخبرنا سفيان عن أبي الزبير
قال رسول الله ﷺ إذا دعي أحدكم فليجب فإن شاء طعم وإن شاء ترك
Its isnad is sahih, mentioned previously at 10533.