Jabir reported the Messenger of Allahﷺ as sayings: when one of you is invited to a meal, he must accept. If he wishes he may eat, but if he wishes(to leave), he may leave.
This hadith also teaches us about hospitality and kindness towards others. We should always be willing to extend a hand of friendship towards those who invite us, regardless of whether or not we plan on attending their event or meal. By accepting an invitation, we are showing respect for the person who has extended it as well as appreciation for their efforts in hosting such an event or gathering.