Narrated Abdullah ibn Umar: The Prophet ﷺ said: He who does not accept an invitation which he receives has disobeyed Allah and His Apostle, and he who enters without invitation enters as a thief and goes out as a raider. Abu Dawud said: Aban bin Tariq is unknown.
The Prophet Muhammad also taught us that we should be kind and generous with our guests by providing them with hospitality during their stay. He said that whoever does not accept an invitation has disobeyed Allah and His Apostle which shows how important it is for Muslims to follow this commandment from Allah.