Sunan Abi Dawud, Book 28, Hadith 5 (Abu Dawud 3741)

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.