‘Abdallah b. ‘Umar reported God’s Messenger as saying, “When one of you is invited to a wedding-feast he must attend it.” In a version by Muslim he said, “He must accept, whether it is a wedding-feast or something of that nature.”
(Bukhari and Muslim.)