The Prophet ﷺ said, "Accept the invitation when you are invited."
حدثنا عفان حدثنا حماد بن زيد عن أيوب عن نافع
عن النبي ﷺ قال ائتوا الدعوة إذا دعيتم
No references are available.
Its isnad is sahih, and it is a repetition of 5367 with this same isnad. But there, the wording is "answer" instead of "come." It is also an abridgment of 5766, and see 6106.