كتاب النكاح
16  
The Book of Marriage
(16)
Chapter: The command to accept invitations
(16)
باب الأَمْرِ بِإِجَابَةِ الدَّاعِي إِلَى دَعْوَةٍ ‏
Sahih Muslim 1429 h

Nafil reported:

I heard Abdullah b. Umar (Allah be pleased with them) narrating that Allah's Messenger (ﷺ) said: Accept the feast when you are invited to it. And Abdullah (b. Umar) used to come to the feast, whether it was a wedding feast or other than that, and he would come there even in the state of fasting.
وَحَدَّثَنِي هَارُونُ بْنُ عَبْدِ اللَّهِ، حَدَّثَنَا حَجَّاجُ بْنُ مُحَمَّدٍ، عَنِ ابْنِ جُرَيْجٍ، أَخْبَرَنِي مُوسَى بْنُ عُقْبَةَ، عَنْ نَافِعٍ، قَالَ سَمِعْتُ عَبْدَ اللَّهِ بْنَ عُمَرَ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ أَجِيبُوا هَذِهِ الدَّعْوَةَ إِذَا دُعِيتُمْ لَهَا ‏"‏ ‏.‏ قَالَ وَكَانَ عَبْدُ اللَّهِ بْنُ عُمَرَ يَأْتِي الدَّعْوَةَ فِي الْعُرْسِ وَغَيْرِ الْعُرْسِ وَيَأْتِيهَا وَهُوَ صَائِمٌ ‏.‏
Reference : Sahih Muslim 1429h
In-book reference : Book 16, Hadith 119
USC-MSA web (English) reference : Book 8, Hadith 3344
  (deprecated numbering scheme)