Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
darimi:2251ʿAbdullāh b. Saʿīd > ʿUqbah b. Khālid > ʿUbaydullāh > Nāfiʿ > Ibn ʿUmar

[Machine] The Messenger of Allah ﷺ said, "When one of you is invited to a feast, let him accept the invitation." Abu Muhammad said, "He should accept the invitation, but it is not obligatory for him to eat."  

الدارمي:٢٢٥١أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ سَعِيدٍ حَدَّثَنَا عُقْبَةُ بْنُ خَالِدٍ عَنْ عُبَيْدِ اللَّهِ عَنْ نَافِعٍ عَنْ ابْنِ عُمَرَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ «إِذَا دُعِيَ أَحَدُكُمْ إِلَى وَلِيمَةٍ فَلْيُجِبْ» قَالَ أَبُو مُحَمَّد «يَنْبَغِي أَنْ يُجِيبَ وَلَيْسَ الْأَكْلُ عَلَيْهِ بِوَاجِبٍ»  


See similar narrations below:

Collected by Aḥmad
ahmad:4949Ḥammād b. Usāmah > ʿUbaydullāh > Nāfiʿ > Ibn ʿUmar

that the Messenger of Allah said: “If anyone of you is invited to a wedding feast, let him accept.” (Using translation from Ibn Mājah 1914)  

أحمد:٤٩٤٩حَدَّثَنَا حَمَّادُ بْنُ أُسَامَةَ حَدَّثَنَا عُبَيْدُ اللهِ حَدَّثَنَا نَافِعٌ عَنِ ابْنِ عُمَرَ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ إِذَا دُعِيَ أَحَدُكُمْ إِلَى وَلِيمَةٍ فَلْيُجِبْ