It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: When any of you is invited, he should accept the invitation. Then if he wishes, he may eat, otherwise he may leave it.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 15219