Ibn Umar narrated that: The Messenger of Allah said: "Accept the invitation when you are offered".
The Prophet's advice also encourages us to be open-minded and welcoming towards people from different backgrounds or cultures as well as those who may have different beliefs than ours. By accepting an invitation, we can learn more about other people's perspectives which can help us become more tolerant and understanding of one another. Furthermore, it is a great way to build relationships with those around us which will ultimately benefit both parties in the long run.